toEntity

Converts a domain Track object into a database TrackEntity.

This is used when saving a Track to the database.

Receiver

Track (domain model)

Return

TrackEntity (Room entity)


Converts a domain Waypoint object into a database WaypointEntity.

This is used when saving a Waypoint to the database.

Receiver

Waypoint (domain model)

Return

WaypointEntity (database entity)