toJson method

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

meta - object containing metadata such as materials, textures for objects.

Convert the light to three.js JSON Object/Scene format.

Implementation

@override
Map<String,dynamic> toJson({Object3dMeta? meta}) {
  final data = super.toJson(meta: meta);
  return data;
}