SetSecurityPolicyRequest constructor

SetSecurityPolicyRequest({
  1. bool? enableIframeEmbedding,
  2. Iterable<String>? allowedOrigins,
  3. bool? enableImpersonation,
})

Implementation

factory SetSecurityPolicyRequest({
  $core.bool? enableIframeEmbedding,
  $core.Iterable<$core.String>? allowedOrigins,
  $core.bool? enableImpersonation,
}) {
  final $result = create();
  if (enableIframeEmbedding != null) {
    $result.enableIframeEmbedding = enableIframeEmbedding;
  }
  if (allowedOrigins != null) {
    $result.allowedOrigins.addAll(allowedOrigins);
  }
  if (enableImpersonation != null) {
    $result.enableImpersonation = enableImpersonation;
  }
  return $result;
}