SCChatChanged constructor

SCChatChanged({
  1. ChatState? from,
  2. ChatState? to,
  3. Int64? chatId,
  4. ChatItem? chat,
  5. Int64? target,
})

Implementation

factory SCChatChanged({
  $0.ChatState? from,
  $0.ChatState? to,
  $fixnum.Int64? chatId,
  $2.ChatItem? chat,
  $fixnum.Int64? target,
}) {
  final $result = create();
  if (from != null) {
    $result.from = from;
  }
  if (to != null) {
    $result.to = to;
  }
  if (chatId != null) {
    $result.chatId = chatId;
  }
  if (chat != null) {
    $result.chat = chat;
  }
  if (target != null) {
    $result.target = target;
  }
  return $result;
}