fromJSON method

  1. @override
dynamic 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(null).fromJSON(hole));
  }

  return this;
}