PscApiClient class

Constructors

PscApiClient({Environment env = Environment.PRODUCTION})

Properties

client ↔ Client
Returns the current HTTP Client instance to use in this class.
getter/setter pair
defaultHeaderMap Map<String, String>
no setter
env Environment
final
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 value, String targetType, {bool growable = false}) → dynamic
deserializeAsync(String value, String targetType, {bool growable = false}) Future
invokeAPI(String path, String method, List<QueryParam> queryParams, Map<String, String> headerParams, 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

Static Methods

fromJson(dynamic value, String targetType, {bool growable = false}) → dynamic
Returns a native instance of an OpenAPI class matching the targetType.