toJson method
meta -- object containing metadata such as textures or images for the material.
Convert the material to three.js JSON Object/Scene format.
Implementation
@override
Map<String, dynamic> toJson({Object3dMeta? meta}) {
final map = super.toJson();
map['projected'] = {};
map['projected']['camera'] = this.camera?.toJson(meta: meta);
map['projected']['texture'] = this.texture?.toJson(meta);
map['projected']['textureScale'] = this.textureScale;
map['projected']['textureOffset'] = this.textureOffset.toList();
map['projected']['backgroundOpacity'] = this.backgroundOpacity;
map['projected']['cover'] = this.cover;
return map;
}