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