toJson method
Convert the AssetIssueContract object to a JSON representation.
Implementation
@override
Map<String, dynamic> toJson() {
return {
"owner_address": ownerAddress.toString(),
"name": StringUtils.decode(name),
"abbr": StringUtils.decode(abbr),
"total_supply": totalSupply.toString(),
"trx_num": trxNum,
"num": num,
"start_time": startTime.toString(),
"end_time": endTime.toString(),
"description": StringUtils.tryDecode(description),
"url": StringUtils.tryDecode(url),
"free_asset_netimit": freeAssetNetLimit?.toString(),
"public_free_asset_netimit": publicFreeAssetNetLimit?.toString(),
"frozen_supply": frozenSupply?.map((e) => e.toJson()).toList(),
"precision": precision,
}..removeWhere((key, value) => value == null);
}