ListResolverEndpointIpAddressesResponse.fromJson constructor

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

Implementation

factory ListResolverEndpointIpAddressesResponse.fromJson(
    Map<String, dynamic> json) {
  return ListResolverEndpointIpAddressesResponse(
    ipAddresses: (json['IpAddresses'] as List?)
        ?.whereNotNull()
        .map((e) => IpAddressResponse.fromJson(e as Map<String, dynamic>))
        .toList(),
    maxResults: json['MaxResults'] as int?,
    nextToken: json['NextToken'] as String?,
  );
}