# ButtonConfiguration.fromJson constructor

ButtonConfiguration.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory ButtonConfiguration.fromJson(Map<String, dynamic> json) =>
        ButtonConfiguration(
          visible: json.containsKey("visible") ? (json["visible"] as bool) : true,
          text: json.containsKey("text") ? json["text"] as String : "",
          accessibilityDescription: json.containsKey("accessibilityDescription")
              ? json["accessibilityDescription"] as String
              : "",
          background: json.containsKey("background")
              ? BackgroundStyle.fromJson(
                  json["background"] as Map<String, dynamic>)
              : BackgroundStyle(),
          foreground: json.containsKey("foreground")
              ? ForegroundStyle.fromJson(
                  json["foreground"] as Map<String, dynamic>)
              : ForegroundStyle(),
        );