UpdateAssetContract.fromJson constructor

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

Create a new UpdateAssetContract instance by parsing a JSON map.

Implementation

factory UpdateAssetContract.fromJson(Map<String, dynamic> json) {
  return UpdateAssetContract(
    ownerAddress: TronAddress(json["owner_address"]),
    description: StringUtils.tryEncode(json['description']),
    url: StringUtils.tryEncode(json['url']),
    newLimit: BigintUtils.tryParse(json['new_limit']),
    newPublicLimit: BigintUtils.tryParse(json['new_public_limit']),
  );
}