CoreDevice.fromJson constructor

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

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