FinderStrokedStyle.fromJson constructor
FinderStrokedStyle.fromJson(
- Map<String, dynamic> json
)
Implementation
factory FinderStrokedStyle.fromJson(Map<String, dynamic> json) =>
FinderStrokedStyle(
strokeColor: json.containsKey("strokeColor")
? ScanbotColor(json["strokeColor"] as String)
: ScanbotColor("#FFFFFFFF"),
strokeWidth: json.containsKey("strokeWidth")
? (json["strokeWidth"] as num).toDouble()
: 3.0,
cornerRadius: json.containsKey("cornerRadius")
? (json["cornerRadius"] as num).toDouble()
: 10.0,
);