GetCoreDeviceResponse.fromJson constructor
GetCoreDeviceResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GetCoreDeviceResponse.fromJson(Map<String, dynamic> json) {
return GetCoreDeviceResponse(
architecture: json['architecture'] as String?,
coreDeviceThingName: json['coreDeviceThingName'] as String?,
coreVersion: json['coreVersion'] as String?,
lastStatusUpdateTimestamp:
timeStampFromJson(json['lastStatusUpdateTimestamp']),
platform: json['platform'] as String?,
status: (json['status'] as String?)?.toCoreDeviceStatus(),
tags: (json['tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
);
}