UniversalRequest class final

Universal template for containing information about Request

Annotations
  • @immutable

Constructors

UniversalRequest({required String name, required HttpRequestType requestType, required String route, required UniversalType? returnType, required List<UniversalRequestType> parameters, List<String> tags = const [], String? operationId, String? externalDocsUrl, String contentType = 'application/json', String? description, bool isDeprecated = false})
Constructor for UniversalRequest
const

Properties

contentType → String
Request content-type
final
description → String?
Request description
final
externalDocsUrl → String?
Optional OpenAPI externalDocs url
final
hashCode → int
The hash code for this object.
no setteroverride
isDeprecated → bool
Value indicating whether this request is deprecated
final
isFormUrlEncoded → bool
Request type 'application/x-www-form-urlencoded'
no setter
isMultiPart → bool
Request has Content-Type 'multipart/form-data'
no setter
name → String
Request name
final
operationId → String?
Original OpenAPI operationId
final
parameters → List<UniversalRequestType>
Request parameters
final
requestType → HttpRequestType
HTTP type of request
final
returnType → UniversalType?
Request return type
final
route → String
Request route
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tags → List<String>
Original OpenAPI tags
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override