# CreditCardScanGuidanceConfiguration.fromJson constructor

CreditCardScanGuidanceConfiguration.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory CreditCardScanGuidanceConfiguration.fromJson(
            Map<String, dynamic> json) =>
        CreditCardScanGuidanceConfiguration(
          visibility: json.containsKey("visibility")
              ? (json["visibility"] as bool)
              : true,
          title: json.containsKey("title")
              ? StyledText.fromJson(json["title"] as Map<String, dynamic>)
              : StyledText(
                  text: "?creditCardUserGuidanceNoCardFound",
                  color: ScanbotColor("?sbColorOnPrimary")),
          background: json.containsKey("background")
              ? BackgroundStyle.fromJson(
                  json["background"] as Map<String, dynamic>)
              : BackgroundStyle(
                  strokeColor: ScanbotColor("#00000000"),
                  fillColor: ScanbotColor("?sbColorSurfaceLow")),
          statesTitles: json.containsKey("statesTitles")
              ? CreditCardScannerGuidanceStates.fromJson(
                  json["statesTitles"] as Map<String, dynamic>)
              : CreditCardScannerGuidanceStates(),
        );