toJson method

Map<String, dynamic> toJson()

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(),
    'debugReporting': debugReporting,
    'sourceRegistrationTimeConfig': sourceRegistrationTimeConfig.toJson(),
    if (debugKey != null) 'debugKey': debugKey!.toJson(),
    if (aggregationCoordinatorOrigin != null)
      'aggregationCoordinatorOrigin': aggregationCoordinatorOrigin,
    if (triggerContextId != null) 'triggerContextId': triggerContextId,
  };
}