LineCurve.fromJSON(Map<String, dynamic> json) { super.fromJSON(json); type = 'LineCurve'; isLineCurve = true; v1 = Vector2().fromArray(json["v1"]); v2 = Vector2().fromArray(json["v2"]); }