toJson method
Creates a json from the object
Implementation
Map toJson() {
return {
'traveler': traveler,
'watcher': watcher,
'distance': distance,
};
}
Creates a json from the object
Map toJson() {
return {
'traveler': traveler,
'watcher': watcher,
'distance': distance,
};
}