toJson method
Serialize this LightShadow.
Implementation
Map<String, dynamic> toJson() {
Map<String, dynamic> object = {};
if (bias != 0) object["bias"] = bias;
if (normalBias != 0) object["normalBias"] = normalBias;
if (radius != 1) object["radius"] = radius;
if (mapSize.x != 512 || mapSize.y != 512) {
object["mapSize"] = mapSize.storage;
}
object["camera"] = camera!.toJson()["object"];
return object;
}