toJson method
Implementation
Map<String, Object> toJson() {
if (module != null && type != null) {
throw ArgumentError(
'The GraphQL indexer cannot combine module and type filters',
);
}
return {
if (module != null) 'module': module!,
if (type != null) 'type': type!,
if (sender != null) 'sender': sender!,
if (atCheckpoint != null) 'atCheckpoint': atCheckpoint!,
if (afterCheckpoint != null) 'afterCheckpoint': afterCheckpoint!,
if (beforeCheckpoint != null) 'beforeCheckpoint': beforeCheckpoint!,
};
}