WitnessCreateContract.fromJson constructor

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

Create a new WitnessCreateContract instance by parsing a JSON map.

Implementation

factory WitnessCreateContract.fromJson(Map<String, dynamic> json) {
  return WitnessCreateContract(
    ownerAddress: OnChainUtils.parseTronAddress(
        value: json['owner_address'], name: "owner_address"),
    url: OnChainUtils.parseBytes(value: json['url'], name: "url"),
  );
}