toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final domain = this.domain;
  final inboxPlacementTrackingOption = this.inboxPlacementTrackingOption;
  final subscriptionStartDate = this.subscriptionStartDate;
  return {
    if (domain != null) 'Domain': domain,
    if (inboxPlacementTrackingOption != null)
      'InboxPlacementTrackingOption': inboxPlacementTrackingOption,
    if (subscriptionStartDate != null)
      'SubscriptionStartDate': unixTimestampToJson(subscriptionStartDate),
  };
}