LineCurve.fromJSON constructor

LineCurve.fromJSON(
  1. Map<String, dynamic> json
)

Implementation

LineCurve.fromJSON(Map<String, dynamic> json) {
  super.fromJSON(json);

  type = 'LineCurve';
  isLineCurve = true;

  v1 = Vector2().fromArray(json["v1"]);
  v2 = Vector2().fromArray(json["v2"]);
}