ListClustersResponse.fromJson constructor

ListClustersResponse.fromJson(
  1. Map json_
)

Implementation

ListClustersResponse.fromJson(core.Map json_)
    : this(
        clusters: json_.containsKey('clusters')
            ? (json_['clusters'] as core.List)
                .map((value) => Cluster.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        failedLocations: json_.containsKey('failedLocations')
            ? (json_['failedLocations'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        nextPageToken: json_.containsKey('nextPageToken')
            ? json_['nextPageToken'] as core.String
            : null,
      );