GoogleCloudDatalabelingV1beta1ImagePolylineAnnotation.fromJson constructor

GoogleCloudDatalabelingV1beta1ImagePolylineAnnotation.fromJson(
  1. Map _json
)

Implementation

GoogleCloudDatalabelingV1beta1ImagePolylineAnnotation.fromJson(core.Map _json)
    : this(
        annotationSpec: _json.containsKey('annotationSpec')
            ? GoogleCloudDatalabelingV1beta1AnnotationSpec.fromJson(
                _json['annotationSpec']
                    as core.Map<core.String, core.dynamic>)
            : null,
        normalizedPolyline: _json.containsKey('normalizedPolyline')
            ? GoogleCloudDatalabelingV1beta1NormalizedPolyline.fromJson(
                _json['normalizedPolyline']
                    as core.Map<core.String, core.dynamic>)
            : null,
        polyline: _json.containsKey('polyline')
            ? GoogleCloudDatalabelingV1beta1Polyline.fromJson(
                _json['polyline'] as core.Map<core.String, core.dynamic>)
            : null,
      );