HttpWait.deserialize constructor

HttpWait.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory HttpWait.deserialize(BinaryReader reader) {
  // Read [HttpWait] fields.
  final maxDelay = reader.readInt32();
  final waitAfter = reader.readInt32();
  final maxWait = reader.readInt32();

  // Construct [HttpWait] object.
  final returnValue = HttpWait(
    maxDelay: maxDelay,
    waitAfter: waitAfter,
    maxWait: maxWait,
  );

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