toEntity method

  1. @override
AlbumEntity toEntity({
  1. String? appId,
})
override

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,
  );
}