call method Null safety

  1. @override
Album call(
  1. 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 ?? '',
  );
}