@override BigInt valueFromJson(dynamic json) => switch (json) { String str => BigInt.parse(str), _ => throw Exception('Invalid JSON type'), };