toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ErrorCode.accessDenied:
      return 'AccessDenied';
    case ErrorCode.internalServerError:
      return 'InternalServerError';
  }
}