toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'filters': filters.toJson(),
'aggregatableDedupKeys': aggregatableDedupKeys
.map((e) => e.toJson())
.toList(),
'eventTriggerData': eventTriggerData.map((e) => e.toJson()).toList(),
'aggregatableTriggerData': aggregatableTriggerData
.map((e) => e.toJson())
.toList(),
'aggregatableValues': aggregatableValues.map((e) => e.toJson()).toList(),
'aggregatableFilteringIdMaxBytes': aggregatableFilteringIdMaxBytes,
'debugReporting': debugReporting,
'sourceRegistrationTimeConfig': sourceRegistrationTimeConfig.toJson(),
'aggregatableDebugReportingConfig': aggregatableDebugReportingConfig
.toJson(),
'scopes': [...scopes],
'namedBudgets': namedBudgets.map((e) => e.toJson()).toList(),
if (debugKey != null) 'debugKey': debugKey!.toJson(),
if (aggregationCoordinatorOrigin != null)
'aggregationCoordinatorOrigin': aggregationCoordinatorOrigin,
if (triggerContextId != null) 'triggerContextId': triggerContextId,
};
}