fromEntity static method
Implementation
static Future<AssignmentResultModel?> fromEntity(
String documentID, AssignmentResultEntity? entity) async {
if (entity == null) return null;
return AssignmentResultModel(
documentID: documentID,
key: entity.key,
value: entity.value,
);
}