toJson method
Implementation
Map<String, Object> toJson() => {
if (sentAddress != null) 'sentAddress': sentAddress!,
if (affectedAddress != null) 'affectedAddress': affectedAddress!,
if (affectedObject != null) 'affectedObject': affectedObject!,
if (function != null) 'function': function!,
if (kind != null)
'kind': kind == GraphQLTransactionKind.system
? 'SYSTEM_TX'
: 'PROGRAMMABLE_TX',
if (atCheckpoint != null) 'atCheckpoint': atCheckpoint!,
if (afterCheckpoint != null) 'afterCheckpoint': afterCheckpoint!,
if (beforeCheckpoint != null) 'beforeCheckpoint': beforeCheckpoint!,
};