toJSON method

  1. @override
dynamic toJSON({
  1. Object3dMeta? meta,
})
override

Implementation

@override
toJSON({Object3dMeta? meta}) {
  var data = super.toJSON();

  data["uuid"] = uuid;
  data["holes"] = [];

  for (var i = 0, l = holes.length; i < l; i++) {
    var hole = holes[i];
    data["holes"].add(hole.toJSON());
  }

  return data;
}