ProposalDeleteContract.fromJson constructor

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

Create a new ProposalDeleteContract instance by parsing a JSON map.

Implementation

factory ProposalDeleteContract.fromJson(Map<String, dynamic> json) {
  return ProposalDeleteContract(
    ownerAddress: TronAddress(json["owner_address"]),
    proposalId: BigintUtils.tryParse(json["proposal_id"]),
  );
}