I try to create a repository with type safe parameters. For this, I created the function parameter as a typedef and use the Dartz package, to be able to return either a failure