fromJson static method Null safety

Value fromJson(
  1. String v,
  2. {BigInt? maxInternal}
)

Implementation

static Value fromJson(String v, {BigInt? maxInternal}) {
  maxInternal ??= _maxNormalInternal;
  final i = BigInt.parse(v, radix: 16);
  if (i < BigInt.zero || i > maxInternal) {
    throw ArgumentError('$i out of range 0..$maxInternal');
  }
  return Value.fromInternal(i);
}