HelpDeepLinkInfo.deserialize constructor
HelpDeepLinkInfo.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory HelpDeepLinkInfo.deserialize(BinaryReader reader) {
// Read [HelpDeepLinkInfo] fields.
final flags = reader.readInt32();
final updateApp = (flags & 1) != 0;
final message = reader.readString();
final hasEntitiesField = (flags & 2) != 0;
final entities =
hasEntitiesField ? reader.readVectorObject<MessageEntityBase>() : null;
// Construct [HelpDeepLinkInfo] object.
final returnValue = HelpDeepLinkInfo(
updateApp: updateApp,
message: message,
entities: entities,
);
// Now return the deserialized [HelpDeepLinkInfo].
return returnValue;
}