DescribeClustersResponse.fromJson constructor

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

Implementation

factory DescribeClustersResponse.fromJson(Map<String, dynamic> json) {
  return DescribeClustersResponse(
    clusters: (json['Clusters'] as List?)
        ?.whereNotNull()
        .map((e) => Cluster.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}