PreprocessingConfig.fromJson constructor

PreprocessingConfig.fromJson(
  1. Map json_
)

Implementation

PreprocessingConfig.fromJson(core.Map json_)
    : this(
        audio: json_.containsKey('audio')
            ? Audio.fromJson(
                json_['audio'] as core.Map<core.String, core.dynamic>)
            : null,
        color: json_.containsKey('color')
            ? Color.fromJson(
                json_['color'] as core.Map<core.String, core.dynamic>)
            : null,
        crop: json_.containsKey('crop')
            ? Crop.fromJson(
                json_['crop'] as core.Map<core.String, core.dynamic>)
            : null,
        deblock: json_.containsKey('deblock')
            ? Deblock.fromJson(
                json_['deblock'] as core.Map<core.String, core.dynamic>)
            : null,
        deinterlace: json_.containsKey('deinterlace')
            ? Deinterlace.fromJson(
                json_['deinterlace'] as core.Map<core.String, core.dynamic>)
            : null,
        denoise: json_.containsKey('denoise')
            ? Denoise.fromJson(
                json_['denoise'] as core.Map<core.String, core.dynamic>)
            : null,
        pad: json_.containsKey('pad')
            ? Pad.fromJson(
                json_['pad'] as core.Map<core.String, core.dynamic>)
            : null,
      );