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();
if (hexTiling != null) {
map['hexTiling'] = hexTiling!.json;
}
return map;
}