HeraRequest constructor

HeraRequest({
  1. User? user,
  2. User? update,
  3. Filter? filter,
  4. Iterable<User>? users,
  5. Token? token,
  6. HeraConfig? config,
  7. VerificationCode? verificationCode,
  8. OidcProvider? oidcProvider,
  9. Iterable<OidcProvider>? oidcProviders,
  10. Template? template,
  11. Iterable<Template>? templates,
  12. Contact? contact,
  13. AuthToken? authToken,
  14. String? namespace,
  15. List<int>? data,
  16. String? oauth2Code,
  17. String? redirectAddress,
  18. Group? group,
  19. bool? validateTokenDb,
})

Implementation

factory HeraRequest({
  User? user,
  User? update,
  Filter? filter,
  $core.Iterable<User>? users,
  Token? token,
  HeraConfig? config,
  VerificationCode? verificationCode,
  OidcProvider? oidcProvider,
  $core.Iterable<OidcProvider>? oidcProviders,
  Template? template,
  $core.Iterable<Template>? templates,
  Contact? contact,
  $1.AuthToken? authToken,
  $core.String? namespace,
  $core.List<$core.int>? data,
  $core.String? oauth2Code,
  $core.String? redirectAddress,
  Group? group,
  $core.bool? validateTokenDb,
}) {
  final _result = create();
  if (user != null) {
    _result.user = user;
  }
  if (update != null) {
    _result.update = update;
  }
  if (filter != null) {
    _result.filter = filter;
  }
  if (users != null) {
    _result.users.addAll(users);
  }
  if (token != null) {
    _result.token = token;
  }
  if (config != null) {
    _result.config = config;
  }
  if (verificationCode != null) {
    _result.verificationCode = verificationCode;
  }
  if (oidcProvider != null) {
    _result.oidcProvider = oidcProvider;
  }
  if (oidcProviders != null) {
    _result.oidcProviders.addAll(oidcProviders);
  }
  if (template != null) {
    _result.template = template;
  }
  if (templates != null) {
    _result.templates.addAll(templates);
  }
  if (contact != null) {
    _result.contact = contact;
  }
  if (authToken != null) {
    _result.authToken = authToken;
  }
  if (namespace != null) {
    _result.namespace = namespace;
  }
  if (data != null) {
    _result.data = data;
  }
  if (oauth2Code != null) {
    _result.oauth2Code = oauth2Code;
  }
  if (redirectAddress != null) {
    _result.redirectAddress = redirectAddress;
  }
  if (group != null) {
    _result.group = group;
  }
  if (validateTokenDb != null) {
    _result.validateTokenDb = validateTokenDb;
  }
  return _result;
}