GoogleCloudDatalabelingV1beta1VideoObjectTrackingAnnotation.fromJson constructor

GoogleCloudDatalabelingV1beta1VideoObjectTrackingAnnotation.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDatalabelingV1beta1VideoObjectTrackingAnnotation.fromJson(
    core.Map json_)
    : this(
        annotationSpec: json_.containsKey('annotationSpec')
            ? GoogleCloudDatalabelingV1beta1AnnotationSpec.fromJson(
                json_['annotationSpec']
                    as core.Map<core.String, core.dynamic>)
            : null,
        objectTrackingFrames: json_.containsKey('objectTrackingFrames')
            ? (json_['objectTrackingFrames'] as core.List)
                .map((value) =>
                    GoogleCloudDatalabelingV1beta1ObjectTrackingFrame
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        timeSegment: json_.containsKey('timeSegment')
            ? GoogleCloudDatalabelingV1beta1TimeSegment.fromJson(
                json_['timeSegment'] as core.Map<core.String, core.dynamic>)
            : null,
      );