# BarcodeFormatUpcEanConfiguration.fromJson constructor

BarcodeFormatUpcEanConfiguration.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory BarcodeFormatUpcEanConfiguration.fromJson(
            Map<String, dynamic> json) =>
        BarcodeFormatUpcEanConfiguration(
          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,
          stripCheckDigits: json.containsKey("stripCheckDigits")
              ? (json["stripCheckDigits"] as bool)
              : false,
          ean8: json.containsKey("ean8") ? (json["ean8"] as bool) : true,
          ean13: json.containsKey("ean13") ? (json["ean13"] as bool) : true,
          upca: json.containsKey("upca") ? (json["upca"] as bool) : true,
          upce: json.containsKey("upce") ? (json["upce"] as bool) : true,
          extensions: json.containsKey("extensions")
              ? UpcEanExtensionBehavior.values
                  .byName(json["extensions"] as String)
              : UpcEanExtensionBehavior.ALLOW_ANY,
        );