toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (body != null) 'body': body!,
      if (crmExperimentIds != null) 'crmExperimentIds': crmExperimentIds!,
      if (docId != null) 'doc_id': docId!,
      if (docType != null) 'doc_type': docType!,
      if (dontShowNotification != null)
        'dont_show_notification': dontShowNotification!,
      if (iconUrl != null) 'iconUrl': iconUrl!,
      if (isDocumentMature != null) 'is_document_mature': isDocumentMature!,
      if (kind != null) 'kind': kind!,
      if (notificationGroup != null) 'notificationGroup': notificationGroup!,
      if (notificationType != null) 'notification_type': notificationType!,
      if (pcampaignId != null) 'pcampaign_id': pcampaignId!,
      if (reason != null) 'reason': reason!,
      if (showNotificationSettingsAction != null)
        'show_notification_settings_action': showNotificationSettingsAction!,
      if (targetUrl != null) 'targetUrl': targetUrl!,
      if (timeToExpireMs != null) 'timeToExpireMs': timeToExpireMs!,
      if (title != null) 'title': title!,
    };