CommunitiesToggleCommunityCollapsedInDialogs.deserialize constructor

CommunitiesToggleCommunityCollapsedInDialogs.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory CommunitiesToggleCommunityCollapsedInDialogs.deserialize(
  BinaryReader reader,
) {
  // Read [CommunitiesToggleCommunityCollapsedInDialogs] fields.
  final flags = reader.readInt32();
  final collapsed = (flags & 1) != 0;
  final community = reader.readObject() as InputChannelBase;

  // Construct [CommunitiesToggleCommunityCollapsedInDialogs] object.
  final returnValue = CommunitiesToggleCommunityCollapsedInDialogs(
    collapsed: collapsed,
    community: community,
  );

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