fromJSON method

  1. @override
Curve fromJSON(
  1. dynamic json
)
override

Implementation

@override
fromJSON(json) {
  super.fromJSON(json);

  uuid = json.uuid;
  holes = [];

  for (var i = 0, l = json.holes.length; i < l; i++) {
    var hole = json.holes[i];
    holes.add(Path.fromJSON(hole));
  }

  return this;
}