StopMultiplexResponse.fromJson constructor
StopMultiplexResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory StopMultiplexResponse.fromJson(Map<String, dynamic> json) {
return StopMultiplexResponse(
arn: json['arn'] as String?,
availabilityZones: (json['availabilityZones'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
destinations: (json['destinations'] as List?)
?.whereNotNull()
.map((e) =>
MultiplexOutputDestination.fromJson(e as Map<String, dynamic>))
.toList(),
id: json['id'] as String?,
multiplexSettings: json['multiplexSettings'] != null
? MultiplexSettings.fromJson(
json['multiplexSettings'] as Map<String, dynamic>)
: null,
name: json['name'] as String?,
pipelinesRunningCount: json['pipelinesRunningCount'] as int?,
programCount: json['programCount'] as int?,
state: (json['state'] as String?)?.toMultiplexState(),
tags: (json['tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
);
}