HeraRequest constructor
HeraRequest({
- User? user,
- User? update,
- Filter? filter,
- Iterable<
User> ? users, - Token? token,
- HeraConfig? config,
- VerificationCode? verificationCode,
- OidcProvider? oidcProvider,
- Iterable<
OidcProvider> ? oidcProviders, - Template? template,
- Iterable<
Template> ? templates, - Contact? contact,
- AuthToken? authToken,
- String? namespace,
- List<
int> ? data, - String? oauth2Code,
- String? redirectAddress,
- Group? group,
- 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;
}