CroppingTextLocalization.fromJson constructor

CroppingTextLocalization.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory CroppingTextLocalization.fromJson(Map<String, dynamic> json) =>
    CroppingTextLocalization(
      cameraProgressOverlayTitle:
          json.containsKey("cameraProgressOverlayTitle")
              ? json["cameraProgressOverlayTitle"] as String
              : "Please wait...",
      croppingTopBarCancelButtonTitle:
          json.containsKey("croppingTopBarCancelButtonTitle")
              ? json["croppingTopBarCancelButtonTitle"] as String
              : "Cancel",
      croppingTopBarConfirmButtonTitle:
          json.containsKey("croppingTopBarConfirmButtonTitle")
              ? json["croppingTopBarConfirmButtonTitle"] as String
              : "Done",
      croppingDetectButtonTitle: json.containsKey("croppingDetectButtonTitle")
          ? json["croppingDetectButtonTitle"] as String
          : "Detect",
      croppingRotateButtonTitle: json.containsKey("croppingRotateButtonTitle")
          ? json["croppingRotateButtonTitle"] as String
          : "Rotate",
      croppingResetButtonTitle: json.containsKey("croppingResetButtonTitle")
          ? json["croppingResetButtonTitle"] as String
          : "Reset",
      croppingScreenTitle: json.containsKey("croppingScreenTitle")
          ? json["croppingScreenTitle"] as String
          : "Crop",
      accessibilityDescriptionCroppingTopBarConfirmButton: json.containsKey(
              "accessibilityDescriptionCroppingTopBarConfirmButton")
          ? json["accessibilityDescriptionCroppingTopBarConfirmButton"]
              as String
          : "Tap to apply changes",
      accessibilityDescriptionCroppingTopBarCancelButton: json.containsKey(
              "accessibilityDescriptionCroppingTopBarCancelButton")
          ? json["accessibilityDescriptionCroppingTopBarCancelButton"]
              as String
          : "Tap to close screen without applying changes",
      accessibilityDescriptionCroppingDetectButton:
          json.containsKey("accessibilityDescriptionCroppingDetectButton")
              ? json["accessibilityDescriptionCroppingDetectButton"] as String
              : "Tap to detect document on the image",
      accessibilityDescriptionCroppingRotateButton:
          json.containsKey("accessibilityDescriptionCroppingRotateButton")
              ? json["accessibilityDescriptionCroppingRotateButton"] as String
              : "Tap to rotate document",
      accessibilityDescriptionCroppingResetButton:
          json.containsKey("accessibilityDescriptionCroppingResetButton")
              ? json["accessibilityDescriptionCroppingResetButton"] as String
              : "Tap to reset document contour to whole image",
    );