toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final campaignHook = this.campaignHook;
  final cloudWatchMetricsEnabled = this.cloudWatchMetricsEnabled;
  final eventTaggingEnabled = this.eventTaggingEnabled;
  final limits = this.limits;
  final quietTime = this.quietTime;
  return {
    if (campaignHook != null) 'CampaignHook': campaignHook,
    if (cloudWatchMetricsEnabled != null)
      'CloudWatchMetricsEnabled': cloudWatchMetricsEnabled,
    if (eventTaggingEnabled != null)
      'EventTaggingEnabled': eventTaggingEnabled,
    if (limits != null) 'Limits': limits,
    if (quietTime != null) 'QuietTime': quietTime,
  };
}