# CreditCardScannerConfiguration.fromJson constructor

CreditCardScannerConfiguration.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory CreditCardScannerConfiguration.fromJson(Map<String, dynamic> json) =>
        CreditCardScannerConfiguration(
          useDocumentDetector: json.containsKey("useDocumentDetector")
              ? (json["useDocumentDetector"] as bool)
              : true,
          scanningMode: json.containsKey("scanningMode")
              ? CreditCardScanningMode.values
                  .byName(json["scanningMode"] as String)
              : CreditCardScanningMode.LIVE,
          requireExpiryDate: json.containsKey("requireExpiryDate")
              ? (json["requireExpiryDate"] as bool)
              : true,
          requireCardholderName: json.containsKey("requireCardholderName")
              ? (json["requireCardholderName"] as bool)
              : true,
          resultAccumulationConfig: json.containsKey("resultAccumulationConfig")
              ? ResultAccumulationConfiguration.fromJson(
                  json["resultAccumulationConfig"] as Map<String, dynamic>)
              : ResultAccumulationConfiguration(),
          returnCreditCardImage: json.containsKey("returnCreditCardImage")
              ? (json["returnCreditCardImage"] as bool)
              : false,
        );