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