toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case FailureCode.clientError:
      return 'CLIENT_ERROR';
    case FailureCode.serverFault:
      return 'SERVER_FAULT';
  }
}