Shape.fromJson constructor

Shape.fromJson(
  1. Map<String, dynamic> json
)

Implementation

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.fromJson(hole));
  }
}