originalBytes property Null safety

List<int>? originalBytes

The raw bytes of this request body.

This value is valid if retainOriginalBytes was set to true prior to decode being invoked.

Implementation

List<int>? get originalBytes {
  if (retainOriginalBytes == false) {
    throw StateError(
      "'originalBytes' were not retained. Set 'retainOriginalBytes' to true prior to decoding.",
    );
  }
  return _bytes;
}