# BarcodeFormatCommonTwoDConfiguration.fromJson constructor

BarcodeFormatCommonTwoDConfiguration.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory BarcodeFormatCommonTwoDConfiguration.fromJson(
            Map<String, dynamic> json) =>
        BarcodeFormatCommonTwoDConfiguration(
          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,
          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.DATA_MATRIX,
                  BarcodeFormat.MAXI_CODE,
                  BarcodeFormat.MICRO_QR_CODE,
                  BarcodeFormat.MICRO_PDF_417,
                  BarcodeFormat.PDF_417,
                  BarcodeFormat.QR_CODE,
                  BarcodeFormat.RMQR_CODE
                ],
        );