Curve.fromJson(Map<String, dynamic> json) { arcLengthDivisions = json["arcLengthDivisions"]; v1 = Vector2.fromJson(json["v1"]); v2 = Vector2.fromJson(json["v2"]); }