MercuryRequest constructor

MercuryRequest({
  1. String? namespace,
  2. User? user,
  3. Message? message,
  4. Conversation? conversation,
  5. int? from,
  6. int? to,
  7. MessageReaction? reaction,
  8. String? authToken,
  9. String? apiKey,
  10. List<int>? data,
})

Implementation

factory MercuryRequest({
  $core.String? namespace,
  $0.User? user,
  Message? message,
  Conversation? conversation,
  $core.int? from,
  $core.int? to,
  MessageReaction? reaction,
  $core.String? authToken,
  $core.String? apiKey,
  $core.List<$core.int>? data,
}) {
  final _result = create();
  if (namespace != null) {
    _result.namespace = namespace;
  }
  if (user != null) {
    _result.user = user;
  }
  if (message != null) {
    _result.message = message;
  }
  if (conversation != null) {
    _result.conversation = conversation;
  }
  if (from != null) {
    _result.from = from;
  }
  if (to != null) {
    _result.to = to;
  }
  if (reaction != null) {
    _result.reaction = reaction;
  }
  if (authToken != null) {
    _result.authToken = authToken;
  }
  if (apiKey != null) {
    _result.apiKey = apiKey;
  }
  if (data != null) {
    _result.data = data;
  }
  return _result;
}