DescribeInputResponse.fromJson constructor
DescribeInputResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DescribeInputResponse.fromJson(Map<String, dynamic> json) {
return DescribeInputResponse(
arn: json['arn'] as String?,
attachedChannels: (json['attachedChannels'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
destinations: (json['destinations'] as List?)
?.whereNotNull()
.map((e) => InputDestination.fromJson(e as Map<String, dynamic>))
.toList(),
id: json['id'] as String?,
inputClass: (json['inputClass'] as String?)?.toInputClass(),
inputDevices: (json['inputDevices'] as List?)
?.whereNotNull()
.map((e) => InputDeviceSettings.fromJson(e as Map<String, dynamic>))
.toList(),
inputSourceType:
(json['inputSourceType'] as String?)?.toInputSourceType(),
mediaConnectFlows: (json['mediaConnectFlows'] as List?)
?.whereNotNull()
.map((e) => MediaConnectFlow.fromJson(e as Map<String, dynamic>))
.toList(),
name: json['name'] as String?,
roleArn: json['roleArn'] as String?,
securityGroups: (json['securityGroups'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
sources: (json['sources'] as List?)
?.whereNotNull()
.map((e) => InputSource.fromJson(e as Map<String, dynamic>))
.toList(),
state: (json['state'] as String?)?.toInputState(),
tags: (json['tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
type: (json['type'] as String?)?.toInputType(),
);
}