GoogleCloudVideointelligenceV1VideoContext.fromJson constructor

GoogleCloudVideointelligenceV1VideoContext.fromJson(
  1. Map json_
)

Implementation

GoogleCloudVideointelligenceV1VideoContext.fromJson(core.Map json_)
    : this(
        explicitContentDetectionConfig:
            json_.containsKey('explicitContentDetectionConfig')
                ? GoogleCloudVideointelligenceV1ExplicitContentDetectionConfig
                    .fromJson(json_['explicitContentDetectionConfig']
                        as core.Map<core.String, core.dynamic>)
                : null,
        faceDetectionConfig: json_.containsKey('faceDetectionConfig')
            ? GoogleCloudVideointelligenceV1FaceDetectionConfig.fromJson(
                json_['faceDetectionConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        labelDetectionConfig: json_.containsKey('labelDetectionConfig')
            ? GoogleCloudVideointelligenceV1LabelDetectionConfig.fromJson(
                json_['labelDetectionConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        objectTrackingConfig: json_.containsKey('objectTrackingConfig')
            ? GoogleCloudVideointelligenceV1ObjectTrackingConfig.fromJson(
                json_['objectTrackingConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        personDetectionConfig: json_.containsKey('personDetectionConfig')
            ? GoogleCloudVideointelligenceV1PersonDetectionConfig.fromJson(
                json_['personDetectionConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        segments: json_.containsKey('segments')
            ? (json_['segments'] as core.List)
                .map((value) =>
                    GoogleCloudVideointelligenceV1VideoSegment.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        shotChangeDetectionConfig:
            json_.containsKey('shotChangeDetectionConfig')
                ? GoogleCloudVideointelligenceV1ShotChangeDetectionConfig
                    .fromJson(json_['shotChangeDetectionConfig']
                        as core.Map<core.String, core.dynamic>)
                : null,
        speechTranscriptionConfig:
            json_.containsKey('speechTranscriptionConfig')
                ? GoogleCloudVideointelligenceV1SpeechTranscriptionConfig
                    .fromJson(json_['speechTranscriptionConfig']
                        as core.Map<core.String, core.dynamic>)
                : null,
        textDetectionConfig: json_.containsKey('textDetectionConfig')
            ? GoogleCloudVideointelligenceV1TextDetectionConfig.fromJson(
                json_['textDetectionConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );