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: OnChainUtils.parseTronAddress(
        value: json['owner_address'], name: 'owner_address'),
    proposalId: OnChainUtils.parseBigInt(
        value: json['proposal_id'], name: 'proposal_id'),
  );
}