ProposalApproveContract.fromJson constructor
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"),
);
}