asDomainObjects

fun Flow<List<ApiMatch>>.asDomainObjects(): Flow<List<Match>>

Transforms a flow of a list of ApiMatch to a flow of a list of Match.

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

Return

A flow emitting a list of domain model Match instances.


Converts a list of ApiMatch instances to a list of domain model Match instances.

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

Return

A list of domain model Match instances.