DeviceEvent.fromJson constructor
Implementation
factory DeviceEvent.fromJson(Map<String, dynamic> json) {
return DeviceEvent(
device: json['device'] != null
? Device.fromJson(json['device'] as Map<String, dynamic>)
: null,
stdEvent: json['stdEvent'] as String?,
);
}