# BarcodeFormatCommonFourStateConfiguration.fromJson constructor

BarcodeFormatCommonFourStateConfiguration.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory BarcodeFormatCommonFourStateConfiguration.fromJson(
            Map<String, dynamic> json) =>
        BarcodeFormatCommonFourStateConfiguration(
          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,
          formats: json.containsKey("formats")
              ? (json["formats"] as List<dynamic>)
                  .map((it) => BarcodeFormat.values.byName(it as String))
                  .toList()
              : [
                  BarcodeFormat.AUSTRALIA_POST,
                  BarcodeFormat.JAPAN_POST,
                  BarcodeFormat.ROYAL_MAIL,
                  BarcodeFormat.ROYAL_TNT_POST,
                  BarcodeFormat.USPS_INTELLIGENT_MAIL
                ],
        );