fromEntity static method

TaskModel? fromEntity(
  1. TaskEntity? entity
)

Implementation

static TaskModel? fromEntity(TaskEntity? entity) {
  if (entity == null) return null;

  var mapper = TaskModelRegistry.registry()!.getMapper(entity.identifier);
  TaskModelRegistry.registry()!.getMapper(entity.identifier);
  if (mapper != null) {
    return mapper.fromEntity(entity);
  }

  return null;
}