fromEntity static method

Future<AssignmentResultModel?> fromEntity(
  1. String documentID,
  2. AssignmentResultEntity? entity
)

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,
  );
}