RpcAnswerDropped.deserialize constructor

RpcAnswerDropped.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory RpcAnswerDropped.deserialize(BinaryReader reader) {
  // Read [RpcAnswerDropped] fields.
  final msgId = reader.readInt64();
  final seqNo = reader.readInt32();
  final bytes = reader.readInt32();

  // Construct [RpcAnswerDropped] object.
  final returnValue = RpcAnswerDropped(
    msgId: msgId,
    seqNo: seqNo,
    bytes: bytes,
  );

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