CoreDevice.fromJson constructor
Implementation
factory CoreDevice.fromJson(Map<String, dynamic> json) {
return CoreDevice(
coreDeviceThingName: json['coreDeviceThingName'] as String?,
lastStatusUpdateTimestamp:
timeStampFromJson(json['lastStatusUpdateTimestamp']),
status: (json['status'] as String?)?.toCoreDeviceStatus(),
);
}