toMap method

JsonMap toMap()

Converts to a map.

Implementation

JsonMap toMap() => {
      'center': center.toMap(),
      'visitCount': visitCount,
      'totalDurationSeconds': totalDuration.inSeconds,
      if (name != null) 'name': name,
    };