toJson method
Implementation
@override
Map<String, dynamic> toJson() => {
'longitude': location.long,
'latitude': location.lat,
if (types != null && types!.isNotEmpty)
'types': types!.map((e) => e.value).toList(),
if (limit != null) 'limit': limit,
if (permanent != null) 'permanent': permanent,
if (language != null) 'language': language,
};