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: TronAddress(json["owner_address"]),
    proposalId: BigintUtils.tryParse(json["proposal_id"]),
    isAddApproval: json["is_add_approval"],
  );
}