DescribeEndpointsResponse.fromJson constructor

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

Implementation

factory DescribeEndpointsResponse.fromJson(Map<String, dynamic> json) {
  return DescribeEndpointsResponse(
    endpoints: (json['endpoints'] as List?)
        ?.whereNotNull()
        .map((e) => Endpoint.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['nextToken'] as String?,
  );
}