Ping.deserialize constructor

Ping.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory Ping.deserialize(BinaryReader reader) {
  // Read [Ping] fields.
  final pingId = reader.readInt64();

  // Construct [Ping] object.
  final returnValue = Ping(
    pingId: pingId,
  );

  // Now return the deserialized [Ping].
  return returnValue;
}