# CustomBinarizationFilter.fromJson constructor

CustomBinarizationFilter.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory CustomBinarizationFilter.fromJson(Map<String, dynamic> json) =>
        CustomBinarizationFilter(
          outputMode: json.containsKey("outputMode")
              ? OutputMode.values.byName(json["outputMode"] as String)
              : OutputMode.BINARY,
          denoise: json.containsKey("denoise")
              ? (json["denoise"] as num).toDouble()
              : 0.5,
          radius: json.containsKey("radius") ? (json["radius"] as int) : 32,
          preset: json.containsKey("preset")
              ? BinarizationFilterPreset.values.byName(json["preset"] as String)
              : BinarizationFilterPreset.PRESET_4,
        );