toMap method

Map<String, dynamic> toMap()

Converts this TimelineModel to a Map

Implementation

Map<String, dynamic> toMap() {
  return {'step_count': stepCount, 'timestamp': timestamp};
}