AddCustomRoutingEndpointsResponse.fromJson constructor

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

Implementation

factory AddCustomRoutingEndpointsResponse.fromJson(
    Map<String, dynamic> json) {
  return AddCustomRoutingEndpointsResponse(
    endpointDescriptions: (json['EndpointDescriptions'] as List?)
        ?.whereNotNull()
        .map((e) => CustomRoutingEndpointDescription.fromJson(
            e as Map<String, dynamic>))
        .toList(),
    endpointGroupArn: json['EndpointGroupArn'] as String?,
  );
}