WitnessUpdateContract.fromJson constructor
Create a new WitnessUpdateContract instance by parsing a JSON map.
Implementation
factory WitnessUpdateContract.fromJson(Map<String, dynamic> json) {
return WitnessUpdateContract(
ownerAddress: OnChainUtils.parseTronAddress(
value: json['owner_address'], name: "owner_address"),
updateUrl: OnChainUtils.parseBytes(
value: json['update_url'], name: "update_url"),
);
}