DecryptedMessageMediaPhoto045.deserialize constructor
DecryptedMessageMediaPhoto045.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory DecryptedMessageMediaPhoto045.deserialize(BinaryReader reader) {
// Read [DecryptedMessageMediaPhoto045] fields.
final thumb = reader.readBytes();
final thumbW = reader.readInt32();
final thumbH = reader.readInt32();
final w = reader.readInt32();
final h = reader.readInt32();
final size = reader.readInt32();
final key = reader.readBytes();
final iv = reader.readBytes();
final caption = reader.readString();
// Construct [DecryptedMessageMediaPhoto045] object.
final returnValue = DecryptedMessageMediaPhoto045(
thumb: thumb,
thumbW: thumbW,
thumbH: thumbH,
w: w,
h: h,
size: size,
key: key,
iv: iv,
caption: caption,
);
// Now return the deserialized [DecryptedMessageMediaPhoto045].
return returnValue;
}