StraightLine.fromJson constructor
Implementation
factory StraightLine.fromJson(Map<String, dynamic> data) {
return StraightLine.data(
startPoint: jsonToOffset(data['startPoint'] as Map<String, dynamic>),
endPoint: jsonToOffset(data['endPoint'] as Map<String, dynamic>),
paint: jsonToPaint(data['paint'] as Map<String, dynamic>),
);
}