SimpleLine.fromJson constructor
Implementation
factory SimpleLine.fromJson(Map<String, dynamic> data) {
return SimpleLine.data(
path: DrawPath.fromJson(data['path'] as Map<String, dynamic>),
paint: jsonToPaint(data['paint'] as Map<String, dynamic>),
);
}