ListCustomRoutingPortMappingsByDestinationResponse.fromJson constructor

ListCustomRoutingPortMappingsByDestinationResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ListCustomRoutingPortMappingsByDestinationResponse.fromJson(
    Map<String, dynamic> json) {
  return ListCustomRoutingPortMappingsByDestinationResponse(
    destinationPortMappings: (json['DestinationPortMappings'] as List?)
        ?.whereNotNull()
        .map(
            (e) => DestinationPortMapping.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}