AccountInfo.fromJson constructor

AccountInfo.fromJson(
  1. Map<String, dynamic> json
)

Implementation

AccountInfo.fromJson(Map<String, dynamic> json) {
  address = json['address'];
  blockCount = json['accountHeight'];
  balanceInfoList = blockCount! > 0
      ? json['balanceInfoMap']
          .keys
          .map<BalanceInfoListItem>(
              (e) => BalanceInfoListItem.fromJson(json['balanceInfoMap'][e]))
          .toList()
      : [];
}