WebPageEmpty.deserialize constructor
WebPageEmpty.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory WebPageEmpty.deserialize(BinaryReader reader) {
// Read [WebPageEmpty] fields.
final flags = reader.readInt32();
final id = reader.readInt64();
final hasUrlField = (flags & 1) != 0;
final url = hasUrlField ? reader.readString() : null;
// Construct [WebPageEmpty] object.
final returnValue = WebPageEmpty(
id: id,
url: url,
);
// Now return the deserialized [WebPageEmpty].
return returnValue;
}