toLinkAssociationState method

LinkAssociationState toLinkAssociationState()

Implementation

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