NuntioRequest constructor

NuntioRequest({
  1. String? namespace,
  2. AuthToken? authToken,
  3. String? apiKey,
  4. Project? project,
  5. Member? member,
  6. User? currentUser,
  7. Access? access,
  8. String? password,
  9. Folder? folder,
  10. File? file,
  11. List<int>? data,
  12. bool? recursive,
  13. Member? currentMember,
  14. MongoQuery? query,
  15. Document? document,
  16. Iterable<Document>? documents,
  17. Collection? collection,
  18. EmailProvider? emailProvider,
  19. TextProvider? textProvider,
  20. Sms? text,
  21. Email? email,
  22. bool? dropCollection,
  23. Index? index,
  24. Function_? function,
})

Implementation

factory NuntioRequest({
  $core.String? namespace,
  $3.AuthToken? authToken,
  $core.String? apiKey,
  Project? project,
  Member? member,
  $0.User? currentUser,
  Access? access,
  $core.String? password,
  Folder? folder,
  File? file,
  $core.List<$core.int>? data,
  $core.bool? recursive,
  Member? currentMember,
  $3.MongoQuery? query,
  $3.Document? document,
  $core.Iterable<$3.Document>? documents,
  $3.Collection? collection,
  EmailProvider? emailProvider,
  TextProvider? textProvider,
  Sms? text,
  Email? email,
  $core.bool? dropCollection,
  $3.Index? index,
  Function_? function,
}) {
  final _result = create();
  if (namespace != null) {
    _result.namespace = namespace;
  }
  if (authToken != null) {
    _result.authToken = authToken;
  }
  if (apiKey != null) {
    _result.apiKey = apiKey;
  }
  if (project != null) {
    _result.project = project;
  }
  if (member != null) {
    _result.member = member;
  }
  if (currentUser != null) {
    _result.currentUser = currentUser;
  }
  if (access != null) {
    _result.access = access;
  }
  if (password != null) {
    _result.password = password;
  }
  if (folder != null) {
    _result.folder = folder;
  }
  if (file != null) {
    _result.file = file;
  }
  if (data != null) {
    _result.data = data;
  }
  if (recursive != null) {
    _result.recursive = recursive;
  }
  if (currentMember != null) {
    _result.currentMember = currentMember;
  }
  if (query != null) {
    _result.query = query;
  }
  if (document != null) {
    _result.document = document;
  }
  if (documents != null) {
    _result.documents.addAll(documents);
  }
  if (collection != null) {
    _result.collection = collection;
  }
  if (emailProvider != null) {
    _result.emailProvider = emailProvider;
  }
  if (textProvider != null) {
    _result.textProvider = textProvider;
  }
  if (text != null) {
    _result.text = text;
  }
  if (email != null) {
    _result.email = email;
  }
  if (dropCollection != null) {
    _result.dropCollection = dropCollection;
  }
  if (index != null) {
    _result.index = index;
  }
  if (function != null) {
    _result.function = function;
  }
  return _result;
}