ListClustersResponse.fromJson constructor

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

Implementation

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