toNetworkDirection method

NetworkDirection toNetworkDirection()

Implementation

NetworkDirection toNetworkDirection() {
  switch (this) {
    case 'IN':
      return NetworkDirection.$in;
    case 'OUT':
      return NetworkDirection.out;
  }
  throw Exception('$this is not known in enum NetworkDirection');
}