toCustomerGatewayAssociationState method

CustomerGatewayAssociationState toCustomerGatewayAssociationState()

Implementation

CustomerGatewayAssociationState toCustomerGatewayAssociationState() {
  switch (this) {
    case 'PENDING':
      return CustomerGatewayAssociationState.pending;
    case 'AVAILABLE':
      return CustomerGatewayAssociationState.available;
    case 'DELETING':
      return CustomerGatewayAssociationState.deleting;
    case 'DELETED':
      return CustomerGatewayAssociationState.deleted;
  }
  throw Exception(
      '$this is not known in enum CustomerGatewayAssociationState');
}