UpdateChannelAvailableMessages.deserialize constructor

UpdateChannelAvailableMessages.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory UpdateChannelAvailableMessages.deserialize(BinaryReader reader) {
  // Read [UpdateChannelAvailableMessages] fields.
  final channelId = reader.readInt64();
  final availableMinId = reader.readInt32();

  // Construct [UpdateChannelAvailableMessages] object.
  final returnValue = UpdateChannelAvailableMessages(
    channelId: channelId,
    availableMinId: availableMinId,
  );

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