stringValue property

String stringValue

RequestType convert to string value.

Implementation

String get stringValue {
  switch (this) {
    case RequestType.GET:
      return 'GET';
    case RequestType.POST:
      return 'POST';
    case RequestType.DELETE:
      return 'DELETE';
    case RequestType.PUT:
      return 'PUT';
    default:
      throw 'Method Not Found';
  }
}