toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case FailureType.jobFailed:
      return 'JobFailed';
    case FailureType.configurationError:
      return 'ConfigurationError';
    case FailureType.permissionError:
      return 'PermissionError';
    case FailureType.revisionOutOfSync:
      return 'RevisionOutOfSync';
    case FailureType.revisionUnavailable:
      return 'RevisionUnavailable';
    case FailureType.systemUnavailable:
      return 'SystemUnavailable';
  }
}