UserRequest constructor
UserRequest({
- User? user,
- User? update,
- UserFilter? filter,
- String? namespace,
- String? encryptionKey,
- Iterable<
User> ? userBatch, - Token? token,
- String? cloudToken,
- String? tokenPointer,
- ActiveMeasurement? activeMeasurement,
- int? totalActiveTime,
- int? averageActiveTime,
- Config? config,
- Email? email,
- String? emailVerificationCode,
- String? resetPasswordCode,
Implementation
factory UserRequest({
User? user,
User? update,
UserFilter? filter,
$core.String? namespace,
$core.String? encryptionKey,
$core.Iterable<User>? userBatch,
Token? token,
$core.String? cloudToken,
$core.String? tokenPointer,
ActiveMeasurement? activeMeasurement,
$core.int? totalActiveTime,
$core.int? averageActiveTime,
Config? config,
Email? email,
$core.String? emailVerificationCode,
$core.String? resetPasswordCode,
}) {
final _result = create();
if (user != null) {
_result.user = user;
}
if (update != null) {
_result.update = update;
}
if (filter != null) {
_result.filter = filter;
}
if (namespace != null) {
_result.namespace = namespace;
}
if (encryptionKey != null) {
_result.encryptionKey = encryptionKey;
}
if (userBatch != null) {
_result.userBatch.addAll(userBatch);
}
if (token != null) {
_result.token = token;
}
if (cloudToken != null) {
_result.cloudToken = cloudToken;
}
if (tokenPointer != null) {
_result.tokenPointer = tokenPointer;
}
if (activeMeasurement != null) {
_result.activeMeasurement = activeMeasurement;
}
if (totalActiveTime != null) {
_result.totalActiveTime = totalActiveTime;
}
if (averageActiveTime != null) {
_result.averageActiveTime = averageActiveTime;
}
if (config != null) {
_result.config = config;
}
if (email != null) {
_result.email = email;
}
if (emailVerificationCode != null) {
_result.emailVerificationCode = emailVerificationCode;
}
if (resetPasswordCode != null) {
_result.resetPasswordCode = resetPasswordCode;
}
return _result;
}