# TextButtonMode.fromJson constructor

TextButtonMode.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory TextButtonMode.fromJson(Map<String, dynamic> json) => TextButtonMode(
          accessibilityDescription: json.containsKey("accessibilityDescription")
              ? json["accessibilityDescription"] as String
              : "?accessibilityDescriptionCameraPreviewButton",
          style: json.containsKey("style")
              ? StyledText.fromJson(json["style"] as Map<String, dynamic>)
              : StyledText(
                  text: "?cameraPreviewButtonTitle",
                  color: ScanbotColor("?sbColorOnPrimary")),
        );