DraftMessageEmpty.deserialize constructor
DraftMessageEmpty.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory DraftMessageEmpty.deserialize(BinaryReader reader) {
// Read [DraftMessageEmpty] fields.
final flags = reader.readInt32();
final hasDateField = (flags & 1) != 0;
final date = hasDateField ? reader.readDateTime() : null;
// Construct [DraftMessageEmpty] object.
final returnValue = DraftMessageEmpty(date: date);
// Now return the deserialized [DraftMessageEmpty].
return returnValue;
}