asDomainObjects

fun Flow<List<ApiTeam>>.asDomainObjects(): Flow<List<Team>>

Transforms a flow of a list of ApiTeam to a flow of a list of Team.

This function maps the data from the API-specific team format to the domain-specific team format, making it suitable for use throughout the application.

Return

A flow emitting a list of domain model Team instances.


Converts a list of ApiTeam instances to a list of domain model Team instances.

This function maps each API-specific team to the domain-specific team format, making it suitable for use throughout the application.

Return

A list of domain model Team instances.