ListResolverEndpointsResponse.fromJson constructor

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

Implementation

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