UpdateChatParticipantDelete.deserialize constructor

UpdateChatParticipantDelete.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory UpdateChatParticipantDelete.deserialize(BinaryReader reader) {
  // Read [UpdateChatParticipantDelete] fields.
  final chatId = reader.readInt64();
  final userId = reader.readInt64();
  final version = reader.readInt32();

  // Construct [UpdateChatParticipantDelete] object.
  final returnValue = UpdateChatParticipantDelete(
    chatId: chatId,
    userId: userId,
    version: version,
  );

  // Now return the deserialized [UpdateChatParticipantDelete].
  return returnValue;
}