fromBytes static method
A factory constructor to deserialize a frame from bytes.
Implementation
static StopSendingFrame fromBytes(ByteData view, int offset) {
final streamId = view.getUint32(offset + 1, Endian.big);
final errorCode = view.getUint32(offset + 5, Endian.big);
return StopSendingFrame(
streamId: streamId,
errorCode: errorCode,
);
}