DescribeGlobalNetworksResponse.fromJson constructor

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

Implementation

factory DescribeGlobalNetworksResponse.fromJson(Map<String, dynamic> json) {
  return DescribeGlobalNetworksResponse(
    globalNetworks: (json['GlobalNetworks'] as List?)
        ?.whereNotNull()
        .map((e) => GlobalNetwork.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}