# CreditCardScanningProgressConfiguration.fromJson constructor

CreditCardScanningProgressConfiguration.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory CreditCardScanningProgressConfiguration.fromJson(
            Map<String, dynamic> json) =>
        CreditCardScanningProgressConfiguration(
          enabled: json.containsKey("enabled") ? (json["enabled"] as bool) : true,
          progressColor: json.containsKey("progressColor")
              ? ScanbotColor(json["progressColor"] as String)
              : ScanbotColor("#40A9FF"),
          animationDuration: json.containsKey("animationDuration")
              ? (json["animationDuration"] as int)
              : 1000,
        );