fromJson method
Copies the data from the given JSON object to this instance.
Implementation
@override
Shape fromJson(Map<String,dynamic> json) {
super.fromJson(json);
uuid = json['uuid'];
holes = [];
for (int i = 0, l = json['holes'].length; i < l; i++) {
final hole = json['holes'][i];
holes.add(Path(null).fromJson(hole));
}
return this;
}