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