toJson method

Map toJson()

Creates a json from the object

Implementation

Map toJson() {
  return {
    'traveler': traveler,
    'watcher': watcher,
    'distance': distance,
  };
}