FinderCorneredStyle.fromJson constructor

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

Implementation

factory FinderCorneredStyle.fromJson(Map<String, dynamic> json) =>
    FinderCorneredStyle(
      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,
    );