DeviceDescription.fromJson constructor

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

Implementation

factory DeviceDescription.fromJson(Map<String, dynamic> json) {
  return DeviceDescription(
    arn: json['arn'] as String?,
    attributes: (json['attributes'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    deviceId: json['deviceId'] as String?,
    enabled: json['enabled'] as bool?,
    remainingLife: json['remainingLife'] as double?,
    tags: (json['tags'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    type: json['type'] as String?,
  );
}