# BarcodeFormatPharmaCodeConfiguration.fromJson constructor

BarcodeFormatPharmaCodeConfiguration.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory BarcodeFormatPharmaCodeConfiguration.fromJson(
            Map<String, dynamic> json) =>
        BarcodeFormatPharmaCodeConfiguration(
          regexFilter: json.containsKey("regexFilter")
              ? json["regexFilter"] as String
              : "",
          minimumSizeScore: json.containsKey("minimumSizeScore")
              ? (json["minimumSizeScore"] as num).toDouble()
              : 0.0,
          addAdditionalQuietZone: json.containsKey("addAdditionalQuietZone")
              ? (json["addAdditionalQuietZone"] as bool)
              : false,
          minimum1DQuietZoneSize: json.containsKey("minimum1DQuietZoneSize")
              ? (json["minimum1DQuietZoneSize"] as int)
              : 6,
          minimumValue: json.containsKey("minimumValue")
              ? (json["minimumValue"] as int)
              : 16,
          allowNarrowBarsOnly: json.containsKey("allowNarrowBarsOnly")
              ? (json["allowNarrowBarsOnly"] as bool)
              : false,
          allowWideBarsOnly: json.containsKey("allowWideBarsOnly")
              ? (json["allowWideBarsOnly"] as bool)
              : false,
        );