toJson method
Convert the TriggerSmartContract object to a JSON representation.
Implementation
@override
Map<String, dynamic> toJson() {
return {
"owner_address": ownerAddress.toString(),
"contract_address": contractAddress.toString(),
"data": BytesUtils.tryToHexString(data!),
"call_value": callValue?.toString(),
"call_token_value": callTokenValue?.toString(),
"token_id": tokenId?.toString()
}..removeWhere((key, value) => value == null);
}