UniversalRequest class final
Universal template for containing information about Request
- Annotations
-
- @immutable
Constructors
-
UniversalRequest.new({required String name, required HttpRequestType requestType, required String route, required UniversalType? returnType, required List<
UniversalRequestType> parameters, 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
- 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
-
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
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