toLinkState method

LinkState toLinkState()

Implementation

LinkState toLinkState() {
  switch (this) {
    case 'PENDING':
      return LinkState.pending;
    case 'AVAILABLE':
      return LinkState.available;
    case 'DELETING':
      return LinkState.deleting;
    case 'UPDATING':
      return LinkState.updating;
  }
  throw Exception('$this is not known in enum LinkState');
}