toJson method

  1. @override
Map<String, dynamic> toJson()
override

Return FogExp2 data in JSON format.

Implementation

@override
Map<String,dynamic> toJson(/* meta */) {
  return {
    "type": 'FogExp2',
    "color": color.getHex(),
    "density": density
  };
}