toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['desc'] = desc;
data['longitude'] = longitude;
data['latitude'] = latitude;
if (nextElem != null) {
data['nextElem'] = nextElem;
}
return data;
}