toJson method

  1. @override
Map<String, dynamic> toJson(
  1. InterleavedBuffer data
)
override

data - This object holds shared array buffers required for properly serializing geometries with interleaved attributes.

Implementation

@override
Map<String,dynamic> toJson(data) {
  final json = super.toJson(data);

  json["isInstancedInterleavedBuffer"] = true;
  json["meshPerAttributes"] = meshPerAttribute;

  return json;
}