repositoryAuthMethodFromString function
Implementation
RepositoryAuthMethod repositoryAuthMethodFromString(String value) {
return RepositoryAuthMethod.values.firstWhere(
(e) => e.toString().split('.')[1].toUpperCase() == value.toUpperCase());
}