GoogleCloudDatalabelingV1beta1Annotation.fromJson constructor

GoogleCloudDatalabelingV1beta1Annotation.fromJson(
  1. Map _json
)

Implementation

GoogleCloudDatalabelingV1beta1Annotation.fromJson(core.Map _json)
    : this(
        annotationMetadata: _json.containsKey('annotationMetadata')
            ? GoogleCloudDatalabelingV1beta1AnnotationMetadata.fromJson(
                _json['annotationMetadata']
                    as core.Map<core.String, core.dynamic>)
            : null,
        annotationSentiment: _json.containsKey('annotationSentiment')
            ? _json['annotationSentiment'] as core.String
            : null,
        annotationSource: _json.containsKey('annotationSource')
            ? _json['annotationSource'] as core.String
            : null,
        annotationValue: _json.containsKey('annotationValue')
            ? GoogleCloudDatalabelingV1beta1AnnotationValue.fromJson(
                _json['annotationValue']
                    as core.Map<core.String, core.dynamic>)
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
      );