ChannelSummary.fromJson constructor
ChannelSummary.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ChannelSummary.fromJson(Map<String, dynamic> json) {
return ChannelSummary(
arn: json['arn'] as String?,
cdiInputSpecification: json['cdiInputSpecification'] != null
? CdiInputSpecification.fromJson(
json['cdiInputSpecification'] as Map<String, dynamic>)
: null,
channelClass: (json['channelClass'] as String?)?.toChannelClass(),
destinations: (json['destinations'] as List?)
?.whereNotNull()
.map((e) => OutputDestination.fromJson(e as Map<String, dynamic>))
.toList(),
egressEndpoints: (json['egressEndpoints'] as List?)
?.whereNotNull()
.map((e) => ChannelEgressEndpoint.fromJson(e as Map<String, dynamic>))
.toList(),
id: json['id'] as String?,
inputAttachments: (json['inputAttachments'] as List?)
?.whereNotNull()
.map((e) => InputAttachment.fromJson(e as Map<String, dynamic>))
.toList(),
inputSpecification: json['inputSpecification'] != null
? InputSpecification.fromJson(
json['inputSpecification'] as Map<String, dynamic>)
: null,
logLevel: (json['logLevel'] as String?)?.toLogLevel(),
name: json['name'] as String?,
pipelinesRunningCount: json['pipelinesRunningCount'] as int?,
roleArn: json['roleArn'] as String?,
state: (json['state'] as String?)?.toChannelState(),
tags: (json['tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
);
}