fromJson static method
Implementation
static VerticalLineTool fromJson(Map<String, dynamic> json) {
return VerticalLineTool(
id: json['id'],
xPosition: json['xPosition'],
timePoint: json['timePoint'] != null
? DateTime.fromMillisecondsSinceEpoch(json['timePoint'])
: null,
color: Color(json['color']),
strokeWidth: json['strokeWidth'],
);
}