GoogleCloudDatalabelingV1beta1VideoPayload.fromJson constructor

GoogleCloudDatalabelingV1beta1VideoPayload.fromJson(
  1. Map _json
)

Implementation

GoogleCloudDatalabelingV1beta1VideoPayload.fromJson(core.Map _json)
    : this(
        frameRate: _json.containsKey('frameRate')
            ? (_json['frameRate'] as core.num).toDouble()
            : null,
        mimeType: _json.containsKey('mimeType')
            ? _json['mimeType'] as core.String
            : null,
        signedUri: _json.containsKey('signedUri')
            ? _json['signedUri'] as core.String
            : null,
        videoThumbnails: _json.containsKey('videoThumbnails')
            ? (_json['videoThumbnails'] as core.List)
                .map((value) =>
                    GoogleCloudDatalabelingV1beta1VideoThumbnail.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        videoUri: _json.containsKey('videoUri')
            ? _json['videoUri'] as core.String
            : null,
      );