ListClustersResponse.fromJson constructor

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

Implementation

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