ApiClient constructor
ApiClient({
- required ApiClientTransport transport,
- String basePath = "https://localhost:8080",
- String? defaultAuthName = kBearer,
- ApiReader? serializer,
- Map<
String, String> ? basePaths, - Authentication? authentication,
Implementation
ApiClient(
{required this.transport,
this.basePath = "https://localhost:8080",
this.defaultAuthName = kBearer,
this.serializer,
Map<String, String>? basePaths,
Authentication? authentication})
: basePaths = basePaths ?? {} {
// Setup authentications (key: authentication name, value: authentication).
authentications['Bearer'] =
authentication ?? ApiKeyAuth("header", "Authorization");
}