create static method
Implementation
static WorkoutService create(http.Client httpClient, String baseUrl, String apiKey) {
final client = ChopperClient(
client: httpClient,
baseUrl: baseUrl,
interceptors: [HttpRequestLoggingInterceptor(), HttpApiKeyInterceptor(apiKey)],
converter: const JsonSerializableConverter({
WorkoutsResponse: WorkoutsResponse.fromJson,
WorkoutStreamResponse: WorkoutStreamResponse.fromJson,
}));
return _$WorkoutService(client);
}