toDBProxyStatus method

DBProxyStatus toDBProxyStatus()

Implementation

DBProxyStatus toDBProxyStatus() {
  switch (this) {
    case 'available':
      return DBProxyStatus.available;
    case 'modifying':
      return DBProxyStatus.modifying;
    case 'incompatible-network':
      return DBProxyStatus.incompatibleNetwork;
    case 'insufficient-resource-limits':
      return DBProxyStatus.insufficientResourceLimits;
    case 'creating':
      return DBProxyStatus.creating;
    case 'deleting':
      return DBProxyStatus.deleting;
    case 'suspended':
      return DBProxyStatus.suspended;
    case 'suspending':
      return DBProxyStatus.suspending;
    case 'reactivating':
      return DBProxyStatus.reactivating;
  }
  throw Exception('$this is not known in enum DBProxyStatus');
}