DeviceEvent.fromJson constructor

DeviceEvent.fromJson(
  1. Map<String, dynamic> json
)

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?,
  );
}