name property

String name

Implementation

String get name {
  switch (this) {
    case HttpMethodType.GET:
      return 'GET';
    case HttpMethodType.POST:
      return 'POST';
   case HttpMethodType.PUT:
      return 'PUT';
   case HttpMethodType.PATCH:
      return 'PATCH';
   case HttpMethodType.DELETE:
      return 'DELETE';
    default:
      return null;
  }
}