MercuryResponse constructor
MercuryResponse({
- User? user,
- Iterable<
User> ? users, - Message? message,
- Iterable<
Message> ? messages, - Conversation? conversation,
- Iterable<
Conversation> ? conversations, - MessageReaction? reaction,
- Iterable<
User> ? contacts,
Implementation
factory MercuryResponse({
$0.User? user,
$core.Iterable<$0.User>? users,
Message? message,
$core.Iterable<Message>? messages,
Conversation? conversation,
$core.Iterable<Conversation>? conversations,
MessageReaction? reaction,
$core.Iterable<$0.User>? contacts,
}) {
final _result = create();
if (user != null) {
_result.user = user;
}
if (users != null) {
_result.users.addAll(users);
}
if (message != null) {
_result.message = message;
}
if (messages != null) {
_result.messages.addAll(messages);
}
if (conversation != null) {
_result.conversation = conversation;
}
if (conversations != null) {
_result.conversations.addAll(conversations);
}
if (reaction != null) {
_result.reaction = reaction;
}
if (contacts != null) {
_result.contacts.addAll(contacts);
}
return _result;
}