IconStyle.fromJson constructor

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

Implementation

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