# CreditCardScannerScreenTextLocalization.fromJson constructor

CreditCardScannerScreenTextLocalization.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory CreditCardScannerScreenTextLocalization.fromJson(
            Map<String, dynamic> json) =>
        CreditCardScannerScreenTextLocalization(
          topBarTitle: json.containsKey("topBarTitle")
              ? json["topBarTitle"] as String
              : "Credit Card Scanner",
          topBarCancelButton: json.containsKey("topBarCancelButton")
              ? json["topBarCancelButton"] as String
              : "Cancel",
          topUserGuidance: json.containsKey("topUserGuidance")
              ? json["topUserGuidance"] as String
              : "Scan the credit card",
          introScreenTitle: json.containsKey("introScreenTitle")
              ? json["introScreenTitle"] as String
              : "How to scan a credit card",
          introScreenDoneButton: json.containsKey("introScreenDoneButton")
              ? json["introScreenDoneButton"] as String
              : "Start Scanning",
          introScreenText: json.containsKey("introScreenText")
              ? json["introScreenText"] as String
              : "To quickly and securely input your credit card details, please hold your device over the credit card, so that the camera aligns with the numbers on the front of the card. \n\nThe scanner will guide you to the optimal scanning position. Once the scan is complete, your card details will automatically be extracted and processed.\n\nPress 'Start Scanning' to begin.",
          completionOverlaySuccessMessage:
              json.containsKey("completionOverlaySuccessMessage")
                  ? json["completionOverlaySuccessMessage"] as String
                  : "Scanned successfully",
          completionOverlayIncompleteDataMessage:
              json.containsKey("completionOverlayIncompleteDataMessage")
                  ? json["completionOverlayIncompleteDataMessage"] as String
                  : "Incomplete scan",
          accessibilityDescriptionOpenIntroScreenButton: json
                  .containsKey("accessibilityDescriptionOpenIntroScreenButton")
              ? json["accessibilityDescriptionOpenIntroScreenButton"] as String
              : "Open introduction screen.",
          accessibilityDescriptionIntroScreenDoneButton: json
                  .containsKey("accessibilityDescriptionIntroScreenDoneButton")
              ? json["accessibilityDescriptionIntroScreenDoneButton"] as String
              : "Start scanning",
          accessibilityDescriptionCancelButton:
              json.containsKey("accessibilityDescriptionCancelButton")
                  ? json["accessibilityDescriptionCancelButton"] as String
                  : "Cancel",
          accessibilityDescriptionFlashButton:
              json.containsKey("accessibilityDescriptionFlashButton")
                  ? json["accessibilityDescriptionFlashButton"] as String
                  : "Toggle flash",
          accessibilityDescriptionZoomButton:
              json.containsKey("accessibilityDescriptionZoomButton")
                  ? json["accessibilityDescriptionZoomButton"] as String
                  : "Toggle camera zoom",
          accessibilityDescriptionFlipCameraButton:
              json.containsKey("accessibilityDescriptionFlipCameraButton")
                  ? json["accessibilityDescriptionFlipCameraButton"] as String
                  : "Flip camera",
          creditCardUserGuidanceNoCardFound:
              json.containsKey("creditCardUserGuidanceNoCardFound")
                  ? json["creditCardUserGuidanceNoCardFound"] as String
                  : "Looking for credit card...",
          creditCardUserGuidanceScanningProgress:
              json.containsKey("creditCardUserGuidanceScanningProgress")
                  ? json["creditCardUserGuidanceScanningProgress"] as String
                  : "Scanning the credit card...",
          creditCardUserGuidanceTooDark:
              json.containsKey("creditCardUserGuidanceTooDark")
                  ? json["creditCardUserGuidanceTooDark"] as String
                  : "Too dark. Please turn on a light.",
          creditCardUserGuidanceTooSmall:
              json.containsKey("creditCardUserGuidanceTooSmall")
                  ? json["creditCardUserGuidanceTooSmall"] as String
                  : "Please move closer to the credit card.",
          creditCardUserGuidanceBadPerspective:
              json.containsKey("creditCardUserGuidanceBadPerspective")
                  ? json["creditCardUserGuidanceBadPerspective"] as String
                  : "Please hold your device straight over the credit card.",
          cameraPermissionEnableCameraTitle:
              json.containsKey("cameraPermissionEnableCameraTitle")
                  ? json["cameraPermissionEnableCameraTitle"] as String
                  : "Camera permission denied!",
          cameraPermissionEnableCameraExplanation: json
                  .containsKey("cameraPermissionEnableCameraExplanation")
              ? json["cameraPermissionEnableCameraExplanation"] as String
              : "Please allow the usage of the camera to start the scanning process.",
          cameraPermissionEnableCameraButton:
              json.containsKey("cameraPermissionEnableCameraButton")
                  ? json["cameraPermissionEnableCameraButton"] as String
                  : "Grant permission",
          cameraPermissionCloseButton:
              json.containsKey("cameraPermissionCloseButton")
                  ? json["cameraPermissionCloseButton"] as String
                  : "Close",
          accessibilityDescriptionCameraPermissionEnableCameraButton: json
                  .containsKey(
                      "accessibilityDescriptionCameraPermissionEnableCameraButton")
              ? json["accessibilityDescriptionCameraPermissionEnableCameraButton"]
                  as String
              : "Tap to grant camera permission",
          accessibilityDescriptionCameraPermissionCloseButton: json.containsKey(
                  "accessibilityDescriptionCameraPermissionCloseButton")
              ? json["accessibilityDescriptionCameraPermissionCloseButton"]
                  as String
              : "Close screen without granting permission",
        );