Access constructor

Access({
  1. bool? allowViewer,
  2. bool? allowEditor,
  3. bool? allowEmptyNamespace,
  4. bool? allowDashboard,
  5. String? method,
  6. bool? disableAuth,
  7. bool? allowPublicApiAccess,
  8. bool? allowAdminApiAccess,
})

Implementation

factory Access({
  $core.bool? allowViewer,
  $core.bool? allowEditor,
  $core.bool? allowEmptyNamespace,
  $core.bool? allowDashboard,
  $core.String? method,
  $core.bool? disableAuth,
  $core.bool? allowPublicApiAccess,
  $core.bool? allowAdminApiAccess,
}) {
  final _result = create();
  if (allowViewer != null) {
    _result.allowViewer = allowViewer;
  }
  if (allowEditor != null) {
    _result.allowEditor = allowEditor;
  }
  if (allowEmptyNamespace != null) {
    _result.allowEmptyNamespace = allowEmptyNamespace;
  }
  if (allowDashboard != null) {
    _result.allowDashboard = allowDashboard;
  }
  if (method != null) {
    _result.method = method;
  }
  if (disableAuth != null) {
    _result.disableAuth = disableAuth;
  }
  if (allowPublicApiAccess != null) {
    _result.allowPublicApiAccess = allowPublicApiAccess;
  }
  if (allowAdminApiAccess != null) {
    _result.allowAdminApiAccess = allowAdminApiAccess;
  }
  return _result;
}