DeviceEvent.fromJson constructor
Implementation
factory DeviceEvent.fromJson(Map<String, dynamic> json) {
return DeviceEvent(
timestamp: timeStampFromJson(json['Timestamp']),
type: (json['Type'] as String?)?.toDeviceEventType(),
value: json['Value'] as String?,
);
}