WitnessCreateContract.fromJson constructor
Create a new WitnessCreateContract instance by parsing a JSON map.
Implementation
factory WitnessCreateContract.fromJson(Map<String, dynamic> json) {
final ownerAddress = TronAddress(json['owner_address']);
final url = StringUtils.tryEncode(json['url']);
return WitnessCreateContract(
ownerAddress: ownerAddress,
url: url,
);
}