ListEndpointsOutput.fromJson constructor

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

Implementation

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