static BigInt hexToBigint(Object? v) { if (v == null || v == '0x') return BigInt.zero; return JsonParser.valueAsBigInt(v, allowHex: true); }