StopChannelResponse.fromJson constructor
StopChannelResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory StopChannelResponse.fromJson(Map<String, dynamic> json) {
return StopChannelResponse(
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(),
encoderSettings: json['encoderSettings'] != null
? EncoderSettings.fromJson(
json['encoderSettings'] as Map<String, dynamic>)
: null,
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?,
pipelineDetails: (json['pipelineDetails'] as List?)
?.whereNotNull()
.map((e) => PipelineDetail.fromJson(e as Map<String, dynamic>))
.toList(),
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)),
);
}