NotifyPeer.deserialize constructor

NotifyPeer.deserialize(
  1. 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;
}