OnModelFormatter extension
Used to convert a List<dynamic> into a Model.
ModelTypes:
Usage:
- This method can be used any time, but it's more required when using
queryWithFilters
. This method will return a List<dynamic> and to make life easy you can use this method to convert into any model.
- on
Methods
-
toAlbumModel(
) → List< AlbumModel> -
Available on List, provided by the OnModelFormatter extension
Used to convert aList dynamic
into aList AlbumModel
. -
toArtistModel(
) → List< ArtistModel> -
Available on List, provided by the OnModelFormatter extension
Used to convert aList dynamic
into aList ArtistModel
. -
toGenreModel(
) → List< GenreModel> -
Available on List, provided by the OnModelFormatter extension
Used to convert aList dynamic
into aList GenreModel
. -
toPlaylistModel(
) → List< PlaylistModel> -
Available on List, provided by the OnModelFormatter extension
Used to convert aList dynamic
into aList PlaylistModel
. -
toSongModel(
) → List< SongModel> -
Available on List, provided by the OnModelFormatter extension
Used to convert aList dynamic
into aList SongModel
.