DescribeDeviceResponse.fromJson constructor
DescribeDeviceResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DescribeDeviceResponse.fromJson(Map<String, dynamic> json) {
return DescribeDeviceResponse(
deviceFleetName: json['DeviceFleetName'] as String,
deviceName: json['DeviceName'] as String,
registrationTime:
nonNullableTimeStampFromJson(json['RegistrationTime'] as Object),
description: json['Description'] as String?,
deviceArn: json['DeviceArn'] as String?,
iotThingName: json['IotThingName'] as String?,
latestHeartbeat: timeStampFromJson(json['LatestHeartbeat']),
maxModels: json['MaxModels'] as int?,
models: (json['Models'] as List?)
?.whereNotNull()
.map((e) => EdgeModel.fromJson(e as Map<String, dynamic>))
.toList(),
nextToken: json['NextToken'] as String?,
);
}