toNamespaceStatus method

NamespaceStatus toNamespaceStatus()

Implementation

NamespaceStatus toNamespaceStatus() {
  switch (this) {
    case 'CREATED':
      return NamespaceStatus.created;
    case 'CREATING':
      return NamespaceStatus.creating;
    case 'DELETING':
      return NamespaceStatus.deleting;
    case 'RETRYABLE_FAILURE':
      return NamespaceStatus.retryableFailure;
    case 'NON_RETRYABLE_FAILURE':
      return NamespaceStatus.nonRetryableFailure;
  }
  throw Exception('$this is not known in enum NamespaceStatus');
}