AuthRequest constructor

AuthRequest({
  1. Iterable<String>? agentDetails,
  2. Iterable<String>? capabilities,
  3. Iterable<String>? scopes,
  4. TempAuth? tempAuth,
  5. String? authSecret,
})

Implementation

factory AuthRequest({
  $core.Iterable<$core.String>? agentDetails,
  $core.Iterable<$core.String>? capabilities,
  $core.Iterable<$core.String>? scopes,
  TempAuth? tempAuth,
  $core.String? authSecret,
}) {
  final result = create();
  if (agentDetails != null) result.agentDetails.addAll(agentDetails);
  if (capabilities != null) result.capabilities.addAll(capabilities);
  if (scopes != null) result.scopes.addAll(scopes);
  if (tempAuth != null) result.tempAuth = tempAuth;
  if (authSecret != null) result.authSecret = authSecret;
  return result;
}