create static method
Implementation
static UserService create(
http.Client httpClient, String baseUrl, String apiKey) {
final client = ChopperClient(
client: httpClient,
baseUrl: baseUrl,
interceptors: [
HttpRequestLoggingInterceptor(),
HttpApiKeyInterceptor(apiKey)
],
converter: const JsonSerializableConverter({
User: User.fromJson,
RefreshResponse: RefreshResponse.fromJson,
ProvidersResponse: ProvidersResponse.fromJson,
CreateUserResponse: CreateUserResponse.fromJson,
DeleteUserResponse: DeleteUserResponse.fromJson,
DeregisterProviderResponse: DeregisterProviderResponse.fromJson,
GetAllUsersResponse: GetAllUsersResponse.fromJson,
}));
return _$UserService(client);
}