$AlbumInfoSongsPrivilegeFromJson function
Implementation
AlbumInfoSongsPrivilege $AlbumInfoSongsPrivilegeFromJson(Map<String, dynamic> json) {
final AlbumInfoSongsPrivilege albumInfoSongsPrivilege = AlbumInfoSongsPrivilege();
final int? id = jsonConvert.convert<int>(json['id']);
if (id != null) {
albumInfoSongsPrivilege.id = id;
}
final int? fee = jsonConvert.convert<int>(json['fee']);
if (fee != null) {
albumInfoSongsPrivilege.fee = fee;
}
final int? payed = jsonConvert.convert<int>(json['payed']);
if (payed != null) {
albumInfoSongsPrivilege.payed = payed;
}
final int? st = jsonConvert.convert<int>(json['st']);
if (st != null) {
albumInfoSongsPrivilege.st = st;
}
final int? pl = jsonConvert.convert<int>(json['pl']);
if (pl != null) {
albumInfoSongsPrivilege.pl = pl;
}
final int? dl = jsonConvert.convert<int>(json['dl']);
if (dl != null) {
albumInfoSongsPrivilege.dl = dl;
}
final int? sp = jsonConvert.convert<int>(json['sp']);
if (sp != null) {
albumInfoSongsPrivilege.sp = sp;
}
final int? cp = jsonConvert.convert<int>(json['cp']);
if (cp != null) {
albumInfoSongsPrivilege.cp = cp;
}
final int? subp = jsonConvert.convert<int>(json['subp']);
if (subp != null) {
albumInfoSongsPrivilege.subp = subp;
}
final bool? cs = jsonConvert.convert<bool>(json['cs']);
if (cs != null) {
albumInfoSongsPrivilege.cs = cs;
}
final int? maxbr = jsonConvert.convert<int>(json['maxbr']);
if (maxbr != null) {
albumInfoSongsPrivilege.maxbr = maxbr;
}
final int? fl = jsonConvert.convert<int>(json['fl']);
if (fl != null) {
albumInfoSongsPrivilege.fl = fl;
}
final bool? toast = jsonConvert.convert<bool>(json['toast']);
if (toast != null) {
albumInfoSongsPrivilege.toast = toast;
}
final int? flag = jsonConvert.convert<int>(json['flag']);
if (flag != null) {
albumInfoSongsPrivilege.flag = flag;
}
final bool? preSell = jsonConvert.convert<bool>(json['preSell']);
if (preSell != null) {
albumInfoSongsPrivilege.preSell = preSell;
}
final int? playMaxbr = jsonConvert.convert<int>(json['playMaxbr']);
if (playMaxbr != null) {
albumInfoSongsPrivilege.playMaxbr = playMaxbr;
}
final int? downloadMaxbr = jsonConvert.convert<int>(json['downloadMaxbr']);
if (downloadMaxbr != null) {
albumInfoSongsPrivilege.downloadMaxbr = downloadMaxbr;
}
final String? maxBrLevel = jsonConvert.convert<String>(json['maxBrLevel']);
if (maxBrLevel != null) {
albumInfoSongsPrivilege.maxBrLevel = maxBrLevel;
}
final String? playMaxBrLevel = jsonConvert.convert<String>(json['playMaxBrLevel']);
if (playMaxBrLevel != null) {
albumInfoSongsPrivilege.playMaxBrLevel = playMaxBrLevel;
}
final String? downloadMaxBrLevel = jsonConvert.convert<String>(json['downloadMaxBrLevel']);
if (downloadMaxBrLevel != null) {
albumInfoSongsPrivilege.downloadMaxBrLevel = downloadMaxBrLevel;
}
final String? plLevel = jsonConvert.convert<String>(json['plLevel']);
if (plLevel != null) {
albumInfoSongsPrivilege.plLevel = plLevel;
}
final String? dlLevel = jsonConvert.convert<String>(json['dlLevel']);
if (dlLevel != null) {
albumInfoSongsPrivilege.dlLevel = dlLevel;
}
final String? flLevel = jsonConvert.convert<String>(json['flLevel']);
if (flLevel != null) {
albumInfoSongsPrivilege.flLevel = flLevel;
}
final dynamic rscl = json['rscl'];
if (rscl != null) {
albumInfoSongsPrivilege.rscl = rscl;
}
final AlbumInfoSongsPrivilegeFreeTrialPrivilege? freeTrialPrivilege = jsonConvert.convert<
AlbumInfoSongsPrivilegeFreeTrialPrivilege>(json['freeTrialPrivilege']);
if (freeTrialPrivilege != null) {
albumInfoSongsPrivilege.freeTrialPrivilege = freeTrialPrivilege;
}
final int? rightSource = jsonConvert.convert<int>(json['rightSource']);
if (rightSource != null) {
albumInfoSongsPrivilege.rightSource = rightSource;
}
final List<
AlbumInfoSongsPrivilegeChargeInfoList>? chargeInfoList = (json['chargeInfoList'] as List<
dynamic>?)?.map(
(e) =>
jsonConvert.convert<AlbumInfoSongsPrivilegeChargeInfoList>(
e) as AlbumInfoSongsPrivilegeChargeInfoList).toList();
if (chargeInfoList != null) {
albumInfoSongsPrivilege.chargeInfoList = chargeInfoList;
}
final int? code = jsonConvert.convert<int>(json['code']);
if (code != null) {
albumInfoSongsPrivilege.code = code;
}
final dynamic message = json['message'];
if (message != null) {
albumInfoSongsPrivilege.message = message;
}
return albumInfoSongsPrivilege;
}