toFailureType method
Implementation
FailureType toFailureType() {
switch (this) {
case 'JobFailed':
return FailureType.jobFailed;
case 'ConfigurationError':
return FailureType.configurationError;
case 'PermissionError':
return FailureType.permissionError;
case 'RevisionOutOfSync':
return FailureType.revisionOutOfSync;
case 'RevisionUnavailable':
return FailureType.revisionUnavailable;
case 'SystemUnavailable':
return FailureType.systemUnavailable;
}
throw Exception('$this is not known in enum FailureType');
}