toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (body != null) 'body': body!,
      if (bodyLocArgs != null) 'bodyLocArgs': bodyLocArgs!,
      if (bodyLocKey != null) 'bodyLocKey': bodyLocKey!,
      if (bypassProxyNotification != null)
        'bypassProxyNotification': bypassProxyNotification!,
      if (channelId != null) 'channelId': channelId!,
      if (clickAction != null) 'clickAction': clickAction!,
      if (color != null) 'color': color!,
      if (defaultLightSettings != null)
        'defaultLightSettings': defaultLightSettings!,
      if (defaultSound != null) 'defaultSound': defaultSound!,
      if (defaultVibrateTimings != null)
        'defaultVibrateTimings': defaultVibrateTimings!,
      if (eventTime != null) 'eventTime': eventTime!,
      if (icon != null) 'icon': icon!,
      if (image != null) 'image': image!,
      if (lightSettings != null) 'lightSettings': lightSettings!,
      if (localOnly != null) 'localOnly': localOnly!,
      if (notificationCount != null) 'notificationCount': notificationCount!,
      if (notificationPriority != null)
        'notificationPriority': notificationPriority!,
      if (sound != null) 'sound': sound!,
      if (sticky != null) 'sticky': sticky!,
      if (tag != null) 'tag': tag!,
      if (ticker != null) 'ticker': ticker!,
      if (title != null) 'title': title!,
      if (titleLocArgs != null) 'titleLocArgs': titleLocArgs!,
      if (titleLocKey != null) 'titleLocKey': titleLocKey!,
      if (vibrateTimings != null) 'vibrateTimings': vibrateTimings!,
      if (visibility != null) 'visibility': visibility!,
    };