toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case Method.get:
      return 'GET';
    case Method.head:
      return 'HEAD';
    case Method.post:
      return 'POST';
    case Method.put:
      return 'PUT';
    case Method.patch:
      return 'PATCH';
    case Method.options:
      return 'OPTIONS';
    case Method.delete:
      return 'DELETE';
  }
}