toEntity method
Implementation
@override
AlbumEntity toEntity({String? appId}) {
return AlbumEntity(
appId: appId,
albumEntries: (albumEntries != null)
? albumEntries!.map((item) => item.toEntity(appId: appId)).toList()
: null,
description: (description != null) ? description : null,
backgroundImage: (backgroundImage != null)
? backgroundImage!.toEntity(appId: appId)
: null,
conditions:
(conditions != null) ? conditions!.toEntity(appId: appId) : null,
);
}