UserRequest constructor

UserRequest({
  1. User? user,
  2. User? update,
  3. UserFilter? filter,
  4. String? namespace,
  5. String? encryptionKey,
  6. Iterable<User>? userBatch,
  7. Token? token,
  8. String? cloudToken,
  9. String? tokenPointer,
  10. ActiveMeasurement? activeMeasurement,
  11. int? totalActiveTime,
  12. int? averageActiveTime,
  13. Config? config,
  14. Email? email,
  15. String? emailVerificationCode,
  16. String? resetPasswordCode,
  17. String? search,
})

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,
  $core.String? search,
}) {
  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;
  }
  if (search != null) {
    _result.search = search;
  }
  return _result;
}