$NewSongDataAlbumFromJson function
Implementation
NewSongDataAlbum $NewSongDataAlbumFromJson(Map<String, dynamic> json) {
final NewSongDataAlbum newSongDataAlbum = NewSongDataAlbum();
final bool? paid = jsonConvert.convert<bool>(json['paid']);
if (paid != null) {
newSongDataAlbum.paid = paid;
}
final bool? onSale = jsonConvert.convert<bool>(json['onSale']);
if (onSale != null) {
newSongDataAlbum.onSale = onSale;
}
final int? picId = jsonConvert.convert<int>(json['picId']);
if (picId != null) {
newSongDataAlbum.picId = picId;
}
final List<NewSongDataAlbumArtists>? artists = (json['artists'] as List<dynamic>?)
?.map(
(e) => jsonConvert.convert<NewSongDataAlbumArtists>(e) as NewSongDataAlbumArtists)
.toList();
if (artists != null) {
newSongDataAlbum.artists = artists;
}
final String? briefDesc = jsonConvert.convert<String>(json['briefDesc']);
if (briefDesc != null) {
newSongDataAlbum.briefDesc = briefDesc;
}
final int? publishTime = jsonConvert.convert<int>(json['publishTime']);
if (publishTime != null) {
newSongDataAlbum.publishTime = publishTime;
}
final String? picUrl = jsonConvert.convert<String>(json['picUrl']);
if (picUrl != null) {
newSongDataAlbum.picUrl = picUrl;
}
final String? commentThreadId = jsonConvert.convert<String>(json['commentThreadId']);
if (commentThreadId != null) {
newSongDataAlbum.commentThreadId = commentThreadId;
}
final NewSongDataAlbumArtist? artist = jsonConvert.convert<NewSongDataAlbumArtist>(
json['artist']);
if (artist != null) {
newSongDataAlbum.artist = artist;
}
final int? copyrightId = jsonConvert.convert<int>(json['copyrightId']);
if (copyrightId != null) {
newSongDataAlbum.copyrightId = copyrightId;
}
final String? company = jsonConvert.convert<String>(json['company']);
if (company != null) {
newSongDataAlbum.company = company;
}
final String? subType = jsonConvert.convert<String>(json['subType']);
if (subType != null) {
newSongDataAlbum.subType = subType;
}
final String? blurPicUrl = jsonConvert.convert<String>(json['blurPicUrl']);
if (blurPicUrl != null) {
newSongDataAlbum.blurPicUrl = blurPicUrl;
}
final int? companyId = jsonConvert.convert<int>(json['companyId']);
if (companyId != null) {
newSongDataAlbum.companyId = companyId;
}
final int? pic = jsonConvert.convert<int>(json['pic']);
if (pic != null) {
newSongDataAlbum.pic = pic;
}
final int? status = jsonConvert.convert<int>(json['status']);
if (status != null) {
newSongDataAlbum.status = status;
}
final String? description = jsonConvert.convert<String>(json['description']);
if (description != null) {
newSongDataAlbum.description = description;
}
final List<dynamic>? alias = (json['alias'] as List<dynamic>?)?.map(
(e) => e).toList();
if (alias != null) {
newSongDataAlbum.alias = alias;
}
final String? tags = jsonConvert.convert<String>(json['tags']);
if (tags != null) {
newSongDataAlbum.tags = tags;
}
final String? name = jsonConvert.convert<String>(json['name']);
if (name != null) {
newSongDataAlbum.name = name;
}
final int? id = jsonConvert.convert<int>(json['id']);
if (id != null) {
newSongDataAlbum.id = id;
}
final String? type = jsonConvert.convert<String>(json['type']);
if (type != null) {
newSongDataAlbum.type = type;
}
final int? size = jsonConvert.convert<int>(json['size']);
if (size != null) {
newSongDataAlbum.size = size;
}
final String? picidStr = jsonConvert.convert<String>(json['picId_str']);
if (picidStr != null) {
newSongDataAlbum.picidStr = picidStr;
}
return newSongDataAlbum;
}