FFApiEndpointSettings constructor

FFApiEndpointSettings({
  1. bool? noProxyForTest,
  2. bool? noProxyForWeb,
  3. String? proxyPrefixUrl,
  4. bool? isPrivateApi,
  5. bool? requireAuthentication,
  6. bool? cached,
  7. bool? decodeUtf8,
  8. bool? encodeBodyUtf8,
  9. SslPinningConfig? sslPinningConfig,
  10. bool? alwaysAllowBody,
  11. Iterable<FFApiEndpointSettings_Interceptor>? interceptors,
  12. bool? isStreamingApi,
  13. bool? escapeVariablesInRequestBody,
  14. 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;
}