toJSON method

  1. @override
dynamic toJSON()
override

Implementation

@override
toJSON() {
  return {
    "type": 'FogExp2',
    "color": color.getHex(),
    "density": density,
  };
}