GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation.fromJson constructor

GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation.fromJson(
  1. Map _json
)

Implementation

GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation.fromJson(
    core.Map _json)
    : this(
        annotationColors: _json.containsKey('annotationColors')
            ? (_json['annotationColors']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, item) => core.MapEntry(
                  key,
                  GoogleCloudDatalabelingV1beta1AnnotationSpec.fromJson(
                      item as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        imageBytes: _json.containsKey('imageBytes')
            ? _json['imageBytes'] as core.String
            : null,
        mimeType: _json.containsKey('mimeType')
            ? _json['mimeType'] as core.String
            : null,
      );