HeraResponse constructor
HeraResponse({
- User? user,
- Iterable<
User> ? users, - Int64? amount,
- Token? token,
- Iterable<
Token> ? tokens, - Map<
String, String> ? publicKeys, - Config? config,
- Template? template,
- Iterable<
Template> ? templates, - Iterable<
LoginType> ? availableLoginMechanisms, - Iterable<
TextProviderType> ? availableTextProviders, - Iterable<
EmailProviderType> ? availableEmailProviders, - VerificationCode? verificationCode,
- LoginSession? loginSession,
- Iterable<
Contact> ? contacts,
Implementation
factory HeraResponse({
User? user,
$core.Iterable<User>? users,
$fixnum.Int64? amount,
Token? token,
$core.Iterable<Token>? tokens,
$core.Map<$core.String, $core.String>? publicKeys,
Config? config,
Template? template,
$core.Iterable<Template>? templates,
$core.Iterable<LoginType>? availableLoginMechanisms,
$core.Iterable<TextProviderType>? availableTextProviders,
$core.Iterable<EmailProviderType>? availableEmailProviders,
VerificationCode? verificationCode,
LoginSession? loginSession,
$core.Iterable<Contact>? contacts,
}) {
final _result = create();
if (user != null) {
_result.user = user;
}
if (users != null) {
_result.users.addAll(users);
}
if (amount != null) {
_result.amount = amount;
}
if (token != null) {
_result.token = token;
}
if (tokens != null) {
_result.tokens.addAll(tokens);
}
if (publicKeys != null) {
_result.publicKeys.addAll(publicKeys);
}
if (config != null) {
_result.config = config;
}
if (template != null) {
_result.template = template;
}
if (templates != null) {
_result.templates.addAll(templates);
}
if (availableLoginMechanisms != null) {
_result.availableLoginMechanisms.addAll(availableLoginMechanisms);
}
if (availableTextProviders != null) {
_result.availableTextProviders.addAll(availableTextProviders);
}
if (availableEmailProviders != null) {
_result.availableEmailProviders.addAll(availableEmailProviders);
}
if (verificationCode != null) {
_result.verificationCode = verificationCode;
}
if (loginSession != null) {
_result.loginSession = loginSession;
}
if (contacts != null) {
_result.contacts.addAll(contacts);
}
return _result;
}