IconButton.fromJson constructor

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

Implementation

factory IconButton.fromJson(Map<String, dynamic> json) => IconButton(
      visible: json.containsKey("visible") ? (json["visible"] as bool) : true,
      color: json.containsKey("color")
          ? ScanbotColor(json["color"] as String)
          : ScanbotColor("#FFFFFF"),
      accessibilityDescription: json.containsKey("accessibilityDescription")
          ? json["accessibilityDescription"] as String
          : "",
    );