DescribeInputDeviceResponse.fromJson constructor
DescribeInputDeviceResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DescribeInputDeviceResponse.fromJson(Map<String, dynamic> json) {
return DescribeInputDeviceResponse(
arn: json['arn'] as String?,
connectionState:
(json['connectionState'] as String?)?.toInputDeviceConnectionState(),
deviceSettingsSyncState: (json['deviceSettingsSyncState'] as String?)
?.toDeviceSettingsSyncState(),
deviceUpdateStatus:
(json['deviceUpdateStatus'] as String?)?.toDeviceUpdateStatus(),
hdDeviceSettings: json['hdDeviceSettings'] != null
? InputDeviceHdSettings.fromJson(
json['hdDeviceSettings'] as Map<String, dynamic>)
: null,
id: json['id'] as String?,
macAddress: json['macAddress'] as String?,
name: json['name'] as String?,
networkSettings: json['networkSettings'] != null
? InputDeviceNetworkSettings.fromJson(
json['networkSettings'] as Map<String, dynamic>)
: null,
serialNumber: json['serialNumber'] as String?,
type: (json['type'] as String?)?.toInputDeviceType(),
uhdDeviceSettings: json['uhdDeviceSettings'] != null
? InputDeviceUhdSettings.fromJson(
json['uhdDeviceSettings'] as Map<String, dynamic>)
: null,
);
}