fromEntityPlus static method

Future<NotificationDashboardModel?> fromEntityPlus(
  1. String documentID,
  2. NotificationDashboardEntity? entity, {
  3. 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),
  );
}