call method Null safety
- AlbumModel albumModel
override
Maps an input to an output type.
Implementation
@override
Album call(AlbumModel albumModel) {
return Album(
id: AlbumId(albumModel.id),
userId: UserId(albumModel.userId),
title: albumModel.title ?? '',
);
}