asDomainObjects

Extension function to convert a Flow of List of ApiCantEat to a Flow of List of CantEat. It maps each ApiCantEat item to a CantEat item.

Return

A Flow of List of CantEat items.


fun Flow<List<ApiLike>>.asDomainObjects(): Flow<List<Like>>

Extension function to convert a Flow of List of ApiLike to a Flow of List of Like. It maps each ApiLike item to a Like item.

Return

A Flow of List of Like items.


Extension function to convert a Flow of List of ApiRecipe to a Flow of List of Recipe. It maps each ApiRecipe item to a Recipe item.

Return

A Flow of List of Recipe items.