create static method
TestkitsService
create(
- Client httpClient,
- Uri baseUrl,
- RequestInterceptor authInterceptor
)
Implementation
static TestkitsService create(
http.Client httpClient, Uri baseUrl, RequestInterceptor authInterceptor) {
final client = ChopperClient(
client: httpClient,
baseUrl: baseUrl,
interceptors: [
HttpRequestLoggingInterceptor(),
authInterceptor,
],
converter: const JsonSerializableConverter({
OrdersResponse: OrdersResponse.fromJson,
TestkitsResponse: TestkitsResponse.fromJson,
OrderResponse: OrderResponse.fromJson,
OrderData: OrderData.fromJson,
}));
return _$TestkitsService(client);
}