OfflinePushInfo.fromJson constructor

OfflinePushInfo.fromJson(
  1. Map json
)

Implementation

OfflinePushInfo.fromJson(Map json) {
  json = Utils.formatJson(json);
  title = json['title'];
  desc = json['desc'];
  ext = json['ext'];
  disablePush = json['disablePush'] ?? false;
  iOSSound = json['iOSSound'];
  iOSImage = json["iOSImage"] ?? "";
  ignoreIOSBadge = json['ignoreIOSBadge'];
  iOSPushType = json["iOSPushType"] ?? 0;
  androidSound = (json['androidSound'] ?? "").toString();
  androidOPPOChannelID = (json['androidOPPOChannelID'] ?? "").toString();
  androidVIVOCategory = json["androidVIVOCategory"] ?? "";
  androidVIVOClassification = (json['androidVIVOClassification'] ?? 1);
  androidFCMChannelID = json["androidFCMChannelID"] ?? "";
  androidFCMImage = json["androidFCMImage"] ?? "";
  androidXiaoMiChannelID = json["androidXiaoMiChannelID"] ?? "";
  androidHuaWeiCategory = json["androidHuaWeiCategory"] ?? "";
  androidHuaWeiImage = json["androidHuaWeiImage"] ?? "";
  androidHonorImage = json["androidHonorImage"] ?? "";
  harmonyImage = json["harmonyImage"] ?? "";
  harmonyCategory = json["harmonyCategory"] ?? "";
  ignoreHarmonyBadge = json["ignoreHarmonyBadge"] ?? false;
}