toJSON method

Map<String, dynamic> toJSON()

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.toArray();
  }

  object["camera"] = camera!.toJSON()["object"];

  return object;
}