DescribeSubnetGroupsResponse.fromJson constructor

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

Implementation

factory DescribeSubnetGroupsResponse.fromJson(Map<String, dynamic> json) {
  return DescribeSubnetGroupsResponse(
    nextToken: json['NextToken'] as String?,
    subnetGroups: (json['SubnetGroups'] as List?)
        ?.whereNotNull()
        .map((e) => SubnetGroup.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}