toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['address'] = address;
data['uid'] = uid;
data['distance'] = distance;
if (location != null) {
data['location'] = location!.toJson();
}
data['sname'] = sname;
data['subtype'] = subtype;
data['name'] = name;
return data;
}