OfflinePushInfo.fromJson constructor

OfflinePushInfo.fromJson(
  1. Map<String, dynamic> json
)

Implementation

OfflinePushInfo.fromJson(Map<String, dynamic> json) {
  title = json['title'];
  desc = json['desc'];
  ext = json['ext'];
  disablePush = json['disablePush'] ?? false;
  iOSSound = json['iOSSound'];
  ignoreIOSBadge = json['ignoreIOSBadge'];
  androidOPPOChannelID = (json['androidOPPOChannelID'] ?? "").toString();
  androidSound = (json['androidSound'] ?? "").toString();
  androidVIVOClassification = (json['androidVIVOClassification'] ?? 1);
  androidFCMChannelID = json["androidFCMChannelID"] ?? "";
  androidXiaoMiChannelID = json["androidXiaoMiChannelID"] ?? "";
  iOSPushType = json["iOSPushType"] ?? 0;
  androidHuaWeiCategory = json["androidHuaWeiCategory"] ?? "";
  androidVIVOCategory = json["androidVIVOCategory"] ?? "";
}