mapFromDatabaseResponse method

  1. @override
BigInt? mapFromDatabaseResponse(
  1. dynamic response
)
override

Maps the response from sql back to a readable dart type.

Implementation

@override
BigInt? mapFromDatabaseResponse(dynamic response) {
  if (response == null || response is BigInt?) return response as BigInt?;
  if (response is int) return BigInt.from(response);
  return BigInt.parse(response.toString());
}