DeviceData.fromJson constructor
DeviceData.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DeviceData.fromJson(Map<String, dynamic> json) {
return DeviceData(
createdTime: timeStampFromJson(json['CreatedTime']),
deviceArn: json['DeviceArn'] as String?,
deviceName: json['DeviceName'] as String?,
deviceSerialNumber: json['DeviceSerialNumber'] as String?,
deviceStatus: (json['DeviceStatus'] as String?)?.toDeviceStatus(),
deviceStatusInfo: json['DeviceStatusInfo'] != null
? DeviceStatusInfo.fromJson(
json['DeviceStatusInfo'] as Map<String, dynamic>)
: null,
deviceType: json['DeviceType'] as String?,
macAddress: json['MacAddress'] as String?,
networkProfileArn: json['NetworkProfileArn'] as String?,
networkProfileName: json['NetworkProfileName'] as String?,
roomArn: json['RoomArn'] as String?,
roomName: json['RoomName'] as String?,
softwareVersion: json['SoftwareVersion'] as String?,
);
}