ArcTo.fromJson constructor

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

Implementation

factory ArcTo.fromJson(Map<String, dynamic> data) {
  return ArcTo(
    rect: jsonToRect(data['rect'] as Map<String, dynamic>),
    startAngle: data['startAngle'] as double,
    sweepAngle: data['sweepAngle'] as double,
    forceMoveTo: data['forceMoveTo'] as bool,
  );
}