GoogleCloudDatalabelingV1beta1LabelImageRequest.fromJson constructor

GoogleCloudDatalabelingV1beta1LabelImageRequest.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDatalabelingV1beta1LabelImageRequest.fromJson(core.Map json_)
    : this(
        basicConfig: json_.containsKey('basicConfig')
            ? GoogleCloudDatalabelingV1beta1HumanAnnotationConfig.fromJson(
                json_['basicConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        boundingPolyConfig: json_.containsKey('boundingPolyConfig')
            ? GoogleCloudDatalabelingV1beta1BoundingPolyConfig.fromJson(
                json_['boundingPolyConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        feature: json_.containsKey('feature')
            ? json_['feature'] as core.String
            : null,
        imageClassificationConfig:
            json_.containsKey('imageClassificationConfig')
                ? GoogleCloudDatalabelingV1beta1ImageClassificationConfig
                    .fromJson(json_['imageClassificationConfig']
                        as core.Map<core.String, core.dynamic>)
                : null,
        polylineConfig: json_.containsKey('polylineConfig')
            ? GoogleCloudDatalabelingV1beta1PolylineConfig.fromJson(
                json_['polylineConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        segmentationConfig: json_.containsKey('segmentationConfig')
            ? GoogleCloudDatalabelingV1beta1SegmentationConfig.fromJson(
                json_['segmentationConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );