as Domain Teams
Converts a DbTeam instance to a domain model Team.
This function maps the database team entity to a more general Team model used throughout the app. It includes converting database fields to corresponding domain model fields.
Return
A Team instance containing the domain model representation of this database team.
Converts a list of DbTeam instances to a list of domain model Team instances.
This function maps each database team entity in the list to its corresponding domain team model. It is essentially a batch operation of asDomainTeams on a list.
Return
A list of Team instances representing the domain model teams.