decode static method

QuotaInfo? decode(
  1. Unpacker u
)

Implementation

static QuotaInfo? decode(Unpacker u) {
  switch (u.unpackListLength()) {
    case 0: return null;
    case 2: break;
    default: throw DecodeError();
  }
  return QuotaInfo(
    quota: StorageSize.decode(u),
    size: (StorageSize.decode(u))!,
  );
}