toMap method

JsonMap toMap()

Converts to a JSON-serializable map.

Implementation

JsonMap toMap() => {
      'stationary': stationary.toMap(),
      'walking': walking.toMap(),
      'city': city.toMap(),
      'suburban': suburban.toMap(),
      'highway': highway.toMap(),
    };