RoutingProfile.fromJson constructor
RoutingProfile.fromJson(
- Map<String, dynamic> json
)
Implementation
factory RoutingProfile.fromJson(Map<String, dynamic> json) {
return RoutingProfile(
defaultOutboundQueueId: json['DefaultOutboundQueueId'] as String?,
description: json['Description'] as String?,
instanceId: json['InstanceId'] as String?,
mediaConcurrencies: (json['MediaConcurrencies'] as List?)
?.whereNotNull()
.map((e) => MediaConcurrency.fromJson(e as Map<String, dynamic>))
.toList(),
name: json['Name'] as String?,
routingProfileArn: json['RoutingProfileArn'] as String?,
routingProfileId: json['RoutingProfileId'] as String?,
tags: (json['Tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
);
}