toJson method
Implementation
Map<String, dynamic> toJson() {
Map<String, dynamic> json = {
'notificationId': notificationId,
'channelIdMi': channelIdForXiaoMi,
'channelIdHW': channelIdForHuaWei,
'importanceHW': importanceForHuaWei?.index,
'channelIdOPPO': channelIdForOppo,
'typeVivo': vivoPushType?.index,
'collapseKeyFCM': collapseKeyForFCM,
'imageUrlFCM': imageUrlForFCM,
};
return json;
}