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(),
    failures: (json['failures'] as List?)
        ?.whereNotNull()
        .map((e) => Failure.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}