toTrustDirection method

TrustDirection toTrustDirection()

Implementation

TrustDirection toTrustDirection() {
  switch (this) {
    case 'One-Way: Outgoing':
      return TrustDirection.oneWayOutgoing;
    case 'One-Way: Incoming':
      return TrustDirection.oneWayIncoming;
    case 'Two-Way':
      return TrustDirection.twoWay;
  }
  throw Exception('$this is not known in enum TrustDirection');
}