fromEntityPlus static method
Future<NotificationDashboardModel?>
fromEntityPlus(
- String documentID,
- NotificationDashboardEntity? entity, {
- String? appId,
Implementation
static Future<NotificationDashboardModel?> fromEntityPlus(
String documentID, NotificationDashboardEntity? entity,
{String? appId}) async {
if (entity == null) return null;
return NotificationDashboardModel(
documentID: documentID,
appId: entity.appId ?? '',
description: entity.description,
conditions: await StorageConditionsModel.fromEntityPlus(entity.conditions,
appId: appId),
);
}