DnaGetBalanceResponse.fromJson constructor

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

Implementation

factory DnaGetBalanceResponse.fromJson(Map<String, dynamic> json) =>
    DnaGetBalanceResponse(
      jsonrpc: json["jsonrpc"],
      id: json["id"],
      result: json["result"] == null
          ? null
          : DnaGetBalanceResponseResult.fromJson(json["result"]),
      error: json["error"] == null
          ? null
          : DnaGetBalanceResponseError.fromJson(json["error"]),
    );