RegionNetworkEndpointGroupsAttachEndpointsRequest.fromJson constructor
RegionNetworkEndpointGroupsAttachEndpointsRequest.fromJson(
- Object? j
Implementation
factory RegionNetworkEndpointGroupsAttachEndpointsRequest.fromJson(
Object? j,
) {
final json = j as Map<String, Object?>;
return RegionNetworkEndpointGroupsAttachEndpointsRequest(
networkEndpoints: switch (json['networkEndpoints']) {
null => [],
List<Object?> $1 => [for (final i in $1) NetworkEndpoint.fromJson(i)],
_ => throw const FormatException('"networkEndpoints" is not a list'),
},
);
}