toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'time': time.toJson(),
'expiry': expiry,
'triggerSpecs': triggerSpecs.map((e) => e.toJson()).toList(),
'aggregatableReportWindow': aggregatableReportWindow,
'type': type.toJson(),
'sourceOrigin': sourceOrigin,
'reportingOrigin': reportingOrigin,
'destinationSites': [...destinationSites],
'eventId': eventId.toJson(),
'priority': priority.toJson(),
'filterData': filterData.map((e) => e.toJson()).toList(),
'aggregationKeys': aggregationKeys.map((e) => e.toJson()).toList(),
'triggerDataMatching': triggerDataMatching.toJson(),
'destinationLimitPriority': destinationLimitPriority.toJson(),
'aggregatableDebugReportingConfig':
aggregatableDebugReportingConfig.toJson(),
if (debugKey != null) 'debugKey': debugKey!.toJson(),
};
}