toJson method

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

Return fog data in JSON format.

Implementation

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