toMap method
Converts to a map.
Implementation
JsonMap toMap() => {
'center': center.toMap(),
'visitCount': visitCount,
'totalDurationSeconds': totalDuration.inSeconds,
if (name != null) 'name': name,
};
Converts to a map.
JsonMap toMap() => {
'center': center.toMap(),
'visitCount': visitCount,
'totalDurationSeconds': totalDuration.inSeconds,
if (name != null) 'name': name,
};