decode method Null safety

XdrThresholds decode(
  1. XdrDataInputStream stream
)

Implementation

static XdrThresholds decode(XdrDataInputStream stream) {
  int thresholdsSize = 4;
  return XdrThresholds(stream.readBytes(thresholdsSize));
}