Convert JS BigNumber to Dart BigInt.
BigInt bigNumberToBigInt(BigNumber bigNumber) => BigInt.parse(bigNumber.toString());