ArcToPoint.fromJson constructor

ArcToPoint.fromJson(
  1. Map<String, dynamic> data
)

Implementation

factory ArcToPoint.fromJson(Map<String, dynamic> data) {
  return ArcToPoint(
    jsonToOffset(data['arcEnd'] as Map<String, dynamic>),
    jsonToRadius(data['radius'] as Map<String, dynamic>),
    data['rotation'] as double,
    data['largeArc'] as bool,
    data['clockwise'] as bool,
  );
}