RegionNetworkEndpointGroupsAttachEndpointsRequest.fromJson constructor

RegionNetworkEndpointGroupsAttachEndpointsRequest.fromJson(
  1. 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'),
    },
  );
}