# GrayscaleFilter.fromJson constructor

GrayscaleFilter.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory GrayscaleFilter.fromJson(Map<String, dynamic> json) =>
        GrayscaleFilter(
          borderWidthFraction: json.containsKey("borderWidthFraction")
              ? (json["borderWidthFraction"] as num).toDouble()
              : 0.06,
          blackOutliersFraction: json.containsKey("blackOutliersFraction")
              ? (json["blackOutliersFraction"] as num).toDouble()
              : 0.0,
          whiteOutliersFraction: json.containsKey("whiteOutliersFraction")
              ? (json["whiteOutliersFraction"] as num).toDouble()
              : 0.02,
        );