OfflinePushInfoEntity.fromJson constructor
OfflinePushInfoEntity.fromJson(
- dynamic data
Implementation
OfflinePushInfoEntity.fromJson(data) {
Map<String, dynamic> json =
data is Map ? data.cast<String, dynamic>() : jsonDecode(data);
if (json['title'] != null) title = json["title"];
if (json['desc'] != null) desc = json["desc"];
if (json['ext'] != null) ext = json["ext"];
if (json['iOSSound'] != null) iOSSound = json["iOSSound"];
if (json['ignoreIOSBadge'] != null) ignoreIOSBadge = json["ignoreIOSBadge"];
if (json['androidOPPOChannelID'] != null)
androidOPPOChannelID = json["androidOPPOChannelID"];
if (json['disablePush'] != null) disablePush = json["disablePush"];
}