ApiClient class
- Mixed-in types
Constructors
-
ApiClient({required ApiClientTransport transport, String basePath = "https://localhost:8080", String? defaultAuthName = kBearer, ApiReader? serializer, Map<
String, String> ? basePaths, Authentication? authentication})
Properties
-
authentications
→ Map<
String, Authentication> -
final
- basePath ↔ String
-
getter/setter pair
-
basePaths
↔ Map<
String, String> -
getter/setter pair
- currentAccessToken → String?
-
no setter
- defaultAuthName → String?
-
final
-
defaultHeaderMap
→ Map<
String, dynamic> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- log → Logger
-
no setterinherited
- loggerName → String
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serializer → ApiReader?
-
final
- transport → ApiClientTransport
-
final
Methods
-
addDefaultHeader(
String key, String value) → void -
applyAuthHeader(
{QueryParams? queryParams, Map< String, String> ? headers}) → Future<Tuple< QueryParams, Map< >String, String> > -
decodeAs<
T> (String jsonVal) → T? -
deserialize(
String jsonVal, String targetType) → dynamic -
invoke(
String path, String method, QueryParams queryParams, Iterable< PFile> files, Object body, Map<String, String?> headerParams, Map<String, String> formParams, String contentType, List<String> ? authNames, {String? basePath}) → Future<ApiResponse> -
invokeRequest(
RequestBuilder request) → Future< ApiResponse> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateParamsForAuth(
Set< String> authNames, QueryParams queryParams, Map<String, String?> headerParams) → Future - Update query and header parameters based on authentication settings. @param authNames The authentications to apply
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited