toTableStatus method

TableStatus toTableStatus()

Implementation

TableStatus toTableStatus() {
  switch (this) {
    case 'CREATING':
      return TableStatus.creating;
    case 'UPDATING':
      return TableStatus.updating;
    case 'DELETING':
      return TableStatus.deleting;
    case 'ACTIVE':
      return TableStatus.active;
    case 'INACCESSIBLE_ENCRYPTION_CREDENTIALS':
      return TableStatus.inaccessibleEncryptionCredentials;
    case 'ARCHIVING':
      return TableStatus.archiving;
    case 'ARCHIVED':
      return TableStatus.archived;
  }
  throw Exception('$this is not known in enum TableStatus');
}