toJSON method

  1. @override
Map<String, dynamic> toJSON({
  1. Object3dMeta? meta,
})
override

Implementation

@override
Map<String, dynamic> toJSON({Object3dMeta? meta}) {
  var data = super.toJSON(meta: meta);
  data['instanceCount'] = instanceCount;
  data['isInstancedBufferGeometry'] = true;
  return data;
}