RequestModel class
Modelo de uma requisição
Constructors
-
RequestModel({String? url, Object? id, String? version, Object? data, bool isBase = false, bool isAbsolute = false, String contentType = HttpContentType.applicationJson, String? responseType, Map<
String, Object> params = const <String, Object>{}, Map<String, String> headers = const <String, String>{}})
Properties
- contentType ↔ String
-
Tipo do conteúdo sendo enviado.
getter/setter pair
- data ↔ Object?
-
Objeto a ser enviado no corpo (body).
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
↔ Map<
String, String> -
Cabeçalhos.
getter/setter pair
- id ↔ Object?
-
ID do registro, se houver.
getter/setter pair
- isAbsolute ↔ bool
-
Indica se a url informada é absoluta.
getter/setter pair
- isBase ↔ bool
-
Indica se é uma URL base (se deve ignorar o "/api/").
getter/setter pair
-
params
↔ Map<
String, Object> -
Parâmetros de URL, se houver.
getter/setter pair
- responseType ↔ String?
-
Tipo do conteúdo a ser recebido.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- url ↔ String?
-
URL.
getter/setter pair
- version ↔ String?
-
Versão da API.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited