CoinBalance.fromJson constructor

CoinBalance.fromJson(
  1. dynamic data
)

Implementation

factory CoinBalance.fromJson(dynamic data) {
  return CoinBalance(
    data['coinType'],
    data['coinObjectCount'],
    BigInt.parse((data['totalBalance'] ?? '0').toString()),
    data['lockedBalance'],
  );
}