TokenBalance.fromJson constructor

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

Implementation

factory TokenBalance.fromJson(Map<String, dynamic> json) {
  return TokenBalance(
      accountIndex: json["accountIndex"],
      mint: SolAddress.uncheckCurve(json["mint"]),
      owner: json["owner"] == null
          ? null
          : SolAddress.uncheckCurve(json["owner"]),
      uiTokenAmount: TokenAmoutResponse.fromJson(json["uiTokenAmount"]));
}