Field error is null if there is no error reported.
error
final GenericFailure<ConnectionError>? failure;