ListClustersOutput.fromJson constructor

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

Implementation

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