ListCustomRoutingEndpointGroupsResponse.fromJson constructor

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

Implementation

factory ListCustomRoutingEndpointGroupsResponse.fromJson(
    Map<String, dynamic> json) {
  return ListCustomRoutingEndpointGroupsResponse(
    endpointGroups: (json['EndpointGroups'] as List?)
        ?.whereNotNull()
        .map((e) =>
            CustomRoutingEndpointGroup.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}