fromEntity static method

Implementation

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