toMessage method
Serializes settings for the native renderer bridge.
Implementation
@override
Map<String, Object> toMessage() => {
'type': nativeType,
'x': position.x,
'y': position.y,
'z': position.z,
'r': color.x,
'g': color.y,
'b': color.z,
'intensity': intensity,
'falloffRadius': falloffRadius,
'castShadows': castShadows,
};