toFailureCode method
Implementation
FailureCode toFailureCode() {
switch (this) {
case 'CLIENT_ERROR':
return FailureCode.clientError;
case 'SERVER_FAULT':
return FailureCode.serverFault;
}
throw Exception('$this is not known in enum FailureCode');
}