BadMsgNotification.deserialize constructor

BadMsgNotification.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory BadMsgNotification.deserialize(BinaryReader reader) {
  // Read [BadMsgNotification] fields.
  final badMsgId = reader.readInt64();
  final badMsgSeqno = reader.readInt32();
  final errorCode = reader.readInt32();

  // Construct [BadMsgNotification] object.
  final returnValue = BadMsgNotification(
    badMsgId: badMsgId,
    badMsgSeqno: badMsgSeqno,
    errorCode: errorCode,
  );

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