fromJson static method
Implementation
static ArrowTool fromJson(Map<String, dynamic> json) {
return ArrowTool(
id: json['id'],
startPoint: json['startPoint'] != null
? Offset(json['startPoint']['x'], json['startPoint']['y'])
: null,
endPoint: json['endPoint'] != null
? Offset(json['endPoint']['x'], json['endPoint']['y'])
: null,
arrowHeadSize: json['arrowHeadSize'] ?? 10.0,
color: Color(json['color']),
strokeWidth: json['strokeWidth'],
);
}