mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
24 lines
469 B
Dart
24 lines
469 B
Dart
|
|
class EventDevice {
|
|
final String? code;
|
|
final DateTime? eventTime;
|
|
final String? value;
|
|
|
|
EventDevice({
|
|
this.code,
|
|
this.eventTime,
|
|
this.value,
|
|
});
|
|
|
|
EventDevice.fromJson(Map<String, dynamic> json)
|
|
: code = json['code'] as String?,
|
|
eventTime = json['eventTime'] ,
|
|
value = json['value'] as String?;
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
'code': code,
|
|
'eventTime': eventTime,
|
|
'value': value,
|
|
};
|
|
}
|