toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      if (title != null) "title": title,
      if (body != null) "body": body,
      if (image != null) "image": image,
      if (androidChannelId != null) "android_channel_id": androidChannelId,
    };