GoogleCloudDatalabelingV1beta1AnnotatedDataset.fromJson constructor

GoogleCloudDatalabelingV1beta1AnnotatedDataset.fromJson(
  1. Map _json
)

Implementation

GoogleCloudDatalabelingV1beta1AnnotatedDataset.fromJson(core.Map _json)
    : this(
        annotationSource: _json.containsKey('annotationSource')
            ? _json['annotationSource'] as core.String
            : null,
        annotationType: _json.containsKey('annotationType')
            ? _json['annotationType'] as core.String
            : null,
        blockingResources: _json.containsKey('blockingResources')
            ? (_json['blockingResources'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        completedExampleCount: _json.containsKey('completedExampleCount')
            ? _json['completedExampleCount'] as core.String
            : null,
        createTime: _json.containsKey('createTime')
            ? _json['createTime'] as core.String
            : null,
        description: _json.containsKey('description')
            ? _json['description'] as core.String
            : null,
        displayName: _json.containsKey('displayName')
            ? _json['displayName'] as core.String
            : null,
        exampleCount: _json.containsKey('exampleCount')
            ? _json['exampleCount'] as core.String
            : null,
        labelStats: _json.containsKey('labelStats')
            ? GoogleCloudDatalabelingV1beta1LabelStats.fromJson(
                _json['labelStats'] as core.Map<core.String, core.dynamic>)
            : null,
        metadata: _json.containsKey('metadata')
            ? GoogleCloudDatalabelingV1beta1AnnotatedDatasetMetadata.fromJson(
                _json['metadata'] as core.Map<core.String, core.dynamic>)
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
      );