toJSON method

  1. @override
dynamic toJSON()
override

Implementation

@override
toJSON(/* meta */) {
  return {"type": 'Fog', "color": color.getHex(), "near": near, "far": far};
}