SplineCurve.fromJSON constructor

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

Implementation

SplineCurve.fromJSON(Map<String, dynamic> json) : super.fromJSON(json) {
  points = [];

  for (var i = 0, l = json["points"].length; i < l; i++) {
    var point = json["points"][i];
    points.add(Vector2(null, null).fromArray(point));
  }
}