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,
        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,
      );