# BarcodeFormatCommonConfiguration.fromJson constructor

BarcodeFormatCommonConfiguration.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory BarcodeFormatCommonConfiguration.fromJson(
            Map<String, dynamic> json) =>
        BarcodeFormatCommonConfiguration(
          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,
          minimumTextLength: json.containsKey("minimumTextLength")
              ? (json["minimumTextLength"] as int)
              : 1,
          maximumTextLength: json.containsKey("maximumTextLength")
              ? (json["maximumTextLength"] as int)
              : 0,
          gs1Handling: json.containsKey("gs1Handling")
              ? Gs1Handling.values.byName(json["gs1Handling"] as String)
              : Gs1Handling.PARSE,
          strictMode: json.containsKey("strictMode")
              ? (json["strictMode"] as bool)
              : true,
          formats: json.containsKey("formats")
              ? (json["formats"] as List<dynamic>)
                  .map((it) => BarcodeFormat.values.byName(it as String))
                  .toList()
              : [
                  BarcodeFormat.AZTEC,
                  BarcodeFormat.CODABAR,
                  BarcodeFormat.CODE_39,
                  BarcodeFormat.CODE_93,
                  BarcodeFormat.CODE_128,
                  BarcodeFormat.DATA_MATRIX,
                  BarcodeFormat.DATABAR,
                  BarcodeFormat.DATABAR_EXPANDED,
                  BarcodeFormat.DATABAR_LIMITED,
                  BarcodeFormat.EAN_13,
                  BarcodeFormat.EAN_8,
                  BarcodeFormat.ITF,
                  BarcodeFormat.MICRO_QR_CODE,
                  BarcodeFormat.PDF_417,
                  BarcodeFormat.QR_CODE,
                  BarcodeFormat.UPC_A,
                  BarcodeFormat.UPC_E
                ],
        );