NotifyPeer.deserialize constructor
NotifyPeer.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory NotifyPeer.deserialize(BinaryReader reader) {
// Read [NotifyPeer] fields.
final peer = reader.readObject() as PeerBase;
// Construct [NotifyPeer] object.
final returnValue = NotifyPeer(
peer: peer,
);
// Now return the deserialized [NotifyPeer].
return returnValue;
}