toFault method
Implementation
Fault toFault() {
switch (this) {
case 'Client':
return Fault.client;
case 'Server':
return Fault.server;
case 'Unknown':
return Fault.unknown;
}
throw Exception('$this is not known in enum Fault');
}