Circle.fromJson constructor
Implementation
factory Circle.fromJson(Map<String, dynamic> data) {
return Circle.data(
isEllipse: data['isEllipse'] as bool,
startFromCenter: data['startFromCenter'] as bool,
center: jsonToOffset(data['center'] as Map<String, dynamic>),
radius: data['radius'] as double,
startPoint: jsonToOffset(data['startPoint'] as Map<String, dynamic>),
endPoint: jsonToOffset(data['endPoint'] as Map<String, dynamic>),
paint: jsonToPaint(data['paint'] as Map<String, dynamic>),
);
}