ApiClient class
Constructors
- ApiClient({String basePath = 'https://api.openai.com/v1', Authentication? authentication})
Properties
- authentication → Authentication?
-
final
- basePath → String
-
final
- client ↔ Client
-
Returns the current HTTP
Client
instance to use in this class.getter/setter pair -
defaultHeaderMap
→ Map<
String, String> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addDefaultHeader(
String key, String value) → void -
deserialize(
String json, String targetType, {bool growable = false}) → dynamic -
deserializeAsync(
String json, String targetType, {bool growable = false}) → Future -
invokeAPI(
String path, String method, List< QueryParam> queryParams, Object? body, Map<String, String> headerParams, Map<String, String> formParams, String? contentType) → Future<Response> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serialize(
Object? value) → String -
serializeAsync(
Object? value) → Future< String> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited