DecryptedMessageMediaExternalDocument023.deserialize constructor
DecryptedMessageMediaExternalDocument023.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory DecryptedMessageMediaExternalDocument023.deserialize(
BinaryReader reader) {
// Read [DecryptedMessageMediaExternalDocument023] fields.
final id = reader.readInt64();
final accessHash = reader.readInt64();
final date = reader.readDateTime();
final mimeType = reader.readString();
final size = reader.readInt32();
final thumb = reader.readObject() as PhotoSizeBase;
final dcId = reader.readInt32();
final attributes = reader.readVectorObject<DocumentAttributeBase>();
// Construct [DecryptedMessageMediaExternalDocument023] object.
final returnValue = DecryptedMessageMediaExternalDocument023(
id: id,
accessHash: accessHash,
date: date,
mimeType: mimeType,
size: size,
thumb: thumb,
dcId: dcId,
attributes: attributes,
);
// Now return the deserialized [DecryptedMessageMediaExternalDocument023].
return returnValue;
}