ProposalCreateContract.fromJson constructor
Create a new ProposalCreateContract instance by parsing a JSON map.
Implementation
factory ProposalCreateContract.fromJson(Map<String, dynamic> json) {
return ProposalCreateContract(
ownerAddress: TronAddress(json["owner_address"]),
parameters: json["parameters"] == null
? null
: (json["parameters"] as Map).map(
(key, value) =>
MapEntry(BigintUtils.parse(key), BigintUtils.parse(value)),
),
);
}