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,
      );