RestAPI constructor
RestAPI({})
Implementation
RestAPI({
AdeptChopperClient? chopperClient,
String? apiUrl,
Uri? apiUri,
this.httpClient,
List<Interceptor>? interceptors,
this.authenticator,
Converter? converter,
ErrorConverter? errorConverter,
Map<Type, ChopperService>? services,
this.timeout,
}) : chopperClient = chopperClient ?? AdeptChopperClient(),
apiUri = apiUri ?? Uri.parse(apiUrl ?? ''),
interceptors = interceptors ?? [],
converter = converter ?? const JsonConverter(),
errorConverter = errorConverter ?? const JsonConverter(),
services = services ?? {};