GoogleCloudDatalabelingV1beta1AnnotationSpecSet.fromJson constructor

GoogleCloudDatalabelingV1beta1AnnotationSpecSet.fromJson(
  1. Map _json
)

Implementation

GoogleCloudDatalabelingV1beta1AnnotationSpecSet.fromJson(core.Map _json)
    : this(
        annotationSpecs: _json.containsKey('annotationSpecs')
            ? (_json['annotationSpecs'] as core.List)
                .map((value) =>
                    GoogleCloudDatalabelingV1beta1AnnotationSpec.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        blockingResources: _json.containsKey('blockingResources')
            ? (_json['blockingResources'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        description: _json.containsKey('description')
            ? _json['description'] as core.String
            : null,
        displayName: _json.containsKey('displayName')
            ? _json['displayName'] as core.String
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
      );