HttpApi<@required RESPONSE> class

Constructors

HttpApi(String method, String url, {String? baseUrl, bool formUrlEncoded = false, Object? body, Map<String, dynamic>? queryParams, Map<String, dynamic>? fields, FromJsonTransform<RESPONSE>? fromJson, HttpOptions? options})

Properties

baseUrl String?
baseUrl in @RestApi
final
body Object?
@Body
final
fields Map<String, dynamic>?
@Field
final
formUrlEncoded bool
@FormUrlEncoded
final
fromJson FromJsonTransform<RESPONSE>?
From Json
final
hashCode int
The hash code for this object.
no setterinherited
method String
Implement of @Method
final
options HttpOptions?
Options, may be null
final
queryParams Map<String, dynamic>?
@Query
final
responseType Type
Type of response, as T
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
Url of @Method and @Path
final

Methods

copyWith({String? method, String? url, String? baseUrl, bool? formUrlEncoded, Object? body, Map<String, dynamic>? queryParams, Map<String, dynamic>? fields, FromJsonTransform<RESPONSE>? fromJson, HttpOptions? options}) HttpApi<RESPONSE>
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.
inherited

Constants

className → const String