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