ProposalApproveContract.fromJson constructor

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

Create a new ProposalApproveContract instance by parsing a JSON map.

Implementation

factory ProposalApproveContract.fromJson(Map<String, dynamic> json) {
  return ProposalApproveContract(
    ownerAddress: OnChainUtils.parseTronAddress(
        value: json["owner_address"], name: "owner_address"),
    proposalId: OnChainUtils.parseBigInt(
        value: json["proposal_id"], name: "proposal_id"),
    isAddApproval: OnChainUtils.parseBoolean(
        value: json["is_add_approval"], name: "is_add_approval"),
  );
}