SwipeToDelete.fromJson constructor
SwipeToDelete.fromJson(
- Map<String, dynamic> json
)
Implementation
factory SwipeToDelete.fromJson(Map<String, dynamic> json) => SwipeToDelete(
enabled: json.containsKey("enabled") ? (json["enabled"] as bool) : true,
backgroundColor: json.containsKey("backgroundColor")
? ScanbotColor(json["backgroundColor"] as String)
: ScanbotColor("?sbColorNegative"),
iconColor: json.containsKey("iconColor")
? ScanbotColor(json["iconColor"] as String)
: ScanbotColor("?sbColorOnPrimary"),
);