toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['title'] = title;
  data['desc'] = desc;
  data['ext'] = ext;
  data['disablePush'] = disablePush;
  data['iOSSound'] = iOSSound;
  data['ignoreIOSBadge'] = ignoreIOSBadge;
  data["iOSImage"] = iOSImage ?? "";
  data['iOSPushType'] = iOSPushType;
  data['androidSound'] = androidSound;
  data['androidOPPOChannelID'] = androidOPPOChannelID;
  data["androidVIVOCategory"] = androidVIVOCategory;
  data['androidVIVOClassification'] = androidVIVOClassification;
  data['androidFCMChannelID'] = androidFCMChannelID;
  data["androidFCMImage"] = androidFCMImage ?? "";
  data['androidXiaoMiChannelID'] = androidXiaoMiChannelID;
  data['androidHuaWeiCategory'] = androidHuaWeiCategory;
  data["androidHuaWeiImage"] = androidHuaWeiImage ?? "";
  data["androidHonorImage"] = androidHonorImage ?? "";
  data["harmonyImage"] = harmonyImage ?? "";
  data["harmonyCategory"] = harmonyCategory ?? "";
  data["ignoreHarmonyBadge"] = ignoreHarmonyBadge;
  return data;
}