SupplyResponse.fromJson constructor

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

Implementation

factory SupplyResponse.fromJson(Map<String, dynamic> json) {
  return SupplyResponse(
      total: json["total"],
      circulating: json["circulating"],
      nonCirculating: json["nonCirculating"],
      nonCirculatingAccounts: (json["nonCirculatingAccounts"] as List)
          .map((e) => SolAddress.uncheckCurve(e))
          .toList());
}