CommunitiesToggleAllPeerLinkRequestApproval.deserialize constructor
CommunitiesToggleAllPeerLinkRequestApproval.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory CommunitiesToggleAllPeerLinkRequestApproval.deserialize(
BinaryReader reader,
) {
// Read [CommunitiesToggleAllPeerLinkRequestApproval] fields.
final flags = reader.readInt32();
final reject = (flags & 1) != 0;
final community = reader.readObject() as InputChannelBase;
// Construct [CommunitiesToggleAllPeerLinkRequestApproval] object.
final returnValue = CommunitiesToggleAllPeerLinkRequestApproval(
reject: reject,
community: community,
);
// Now return the deserialized [CommunitiesToggleAllPeerLinkRequestApproval].
return returnValue;
}