# ParametricFilter.fromJson constructor

ParametricFilter.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory ParametricFilter.fromJson(Map<String, dynamic> json) {
      String _type = json["_type"];
      switch (_type) {
        case "ScanbotBinarizationFilter":
          return ScanbotBinarizationFilter.fromJson(json);
        case "CustomBinarizationFilter":
          return CustomBinarizationFilter.fromJson(json);
        case "ColorDocumentFilter":
          return ColorDocumentFilter.fromJson(json);
        case "BrightnessFilter":
          return BrightnessFilter.fromJson(json);
        case "ContrastFilter":
          return ContrastFilter.fromJson(json);
        case "GrayscaleFilter":
          return GrayscaleFilter.fromJson(json);
        case "LegacyFilter":
          return LegacyFilter.fromJson(json);
        case "WhiteBlackPointFilter":
          return WhiteBlackPointFilter.fromJson(json);
        default:
          throw ArgumentError("Invalid polymorphic type: $_type");
      }
    }