FFApiEndpointSettings constructor
FFApiEndpointSettings({
- bool? noProxyForTest,
- bool? noProxyForWeb,
- String? proxyPrefixUrl,
- bool? isPrivateApi,
- bool? requireAuthentication,
- bool? cached,
- bool? decodeUtf8,
- bool? encodeBodyUtf8,
- SslPinningConfig? sslPinningConfig,
- bool? alwaysAllowBody,
- Iterable<
FFApiEndpointSettings_Interceptor> ? interceptors, - bool? isStreamingApi,
- bool? escapeVariablesInRequestBody,
- bool? withCredentials,
Implementation
factory FFApiEndpointSettings({
$core.bool? noProxyForTest,
$core.bool? noProxyForWeb,
$core.String? proxyPrefixUrl,
$core.bool? isPrivateApi,
$core.bool? requireAuthentication,
$core.bool? cached,
$core.bool? decodeUtf8,
$core.bool? encodeBodyUtf8,
SslPinningConfig? sslPinningConfig,
$core.bool? alwaysAllowBody,
$core.Iterable<FFApiEndpointSettings_Interceptor>? interceptors,
$core.bool? isStreamingApi,
$core.bool? escapeVariablesInRequestBody,
$core.bool? withCredentials,
}) {
final result = create();
if (noProxyForTest != null) result.noProxyForTest = noProxyForTest;
if (noProxyForWeb != null) result.noProxyForWeb = noProxyForWeb;
if (proxyPrefixUrl != null) result.proxyPrefixUrl = proxyPrefixUrl;
if (isPrivateApi != null) result.isPrivateApi = isPrivateApi;
if (requireAuthentication != null)
result.requireAuthentication = requireAuthentication;
if (cached != null) result.cached = cached;
if (decodeUtf8 != null) result.decodeUtf8 = decodeUtf8;
if (encodeBodyUtf8 != null) result.encodeBodyUtf8 = encodeBodyUtf8;
if (sslPinningConfig != null) result.sslPinningConfig = sslPinningConfig;
if (alwaysAllowBody != null) result.alwaysAllowBody = alwaysAllowBody;
if (interceptors != null) result.interceptors.addAll(interceptors);
if (isStreamingApi != null) result.isStreamingApi = isStreamingApi;
if (escapeVariablesInRequestBody != null)
result.escapeVariablesInRequestBody = escapeVariablesInRequestBody;
if (withCredentials != null) result.withCredentials = withCredentials;
return result;
}