GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse.fromJson constructor

GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse.fromJson(
  1. Map _json
)

Implementation

GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse.fromJson(
    core.Map _json)
    : this(
        annotatedDatasets: _json.containsKey('annotatedDatasets')
            ? (_json['annotatedDatasets'] as core.List)
                .map<GoogleCloudDatalabelingV1beta1AnnotatedDataset>(
                    (value) => GoogleCloudDatalabelingV1beta1AnnotatedDataset
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        nextPageToken: _json.containsKey('nextPageToken')
            ? _json['nextPageToken'] as core.String
            : null,
      );