toUserStackAssociationErrorCode method
Implementation
UserStackAssociationErrorCode toUserStackAssociationErrorCode() {
switch (this) {
case 'STACK_NOT_FOUND':
return UserStackAssociationErrorCode.stackNotFound;
case 'USER_NAME_NOT_FOUND':
return UserStackAssociationErrorCode.userNameNotFound;
case 'DIRECTORY_NOT_FOUND':
return UserStackAssociationErrorCode.directoryNotFound;
case 'INTERNAL_ERROR':
return UserStackAssociationErrorCode.internalError;
}
throw Exception('$this is not known in enum UserStackAssociationErrorCode');
}