$AlbumInfoAlbumFromJson function

AlbumInfoAlbum $AlbumInfoAlbumFromJson(
  1. Map<String, dynamic> json
)

Implementation

AlbumInfoAlbum $AlbumInfoAlbumFromJson(Map<String, dynamic> json) {
  final AlbumInfoAlbum albumInfoAlbum = AlbumInfoAlbum();
  final List<dynamic>? songs = (json['songs'] as List<dynamic>?)?.map(
          (e) => e).toList();
  if (songs != null) {
    albumInfoAlbum.songs = songs;
  }
  final bool? paid = jsonConvert.convert<bool>(json['paid']);
  if (paid != null) {
    albumInfoAlbum.paid = paid;
  }
  final bool? onSale = jsonConvert.convert<bool>(json['onSale']);
  if (onSale != null) {
    albumInfoAlbum.onSale = onSale;
  }
  final int? mark = jsonConvert.convert<int>(json['mark']);
  if (mark != null) {
    albumInfoAlbum.mark = mark;
  }
  final dynamic awardTags = json['awardTags'];
  if (awardTags != null) {
    albumInfoAlbum.awardTags = awardTags;
  }
  final dynamic displayTags = json['displayTags'];
  if (displayTags != null) {
    albumInfoAlbum.displayTags = displayTags;
  }
  final List<AlbumInfoAlbumArtists>? artists = (json['artists'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<AlbumInfoAlbumArtists>(e) as AlbumInfoAlbumArtists).toList();
  if (artists != null) {
    albumInfoAlbum.artists = artists;
  }
  final int? picId = jsonConvert.convert<int>(json['picId']);
  if (picId != null) {
    albumInfoAlbum.picId = picId;
  }
  final AlbumInfoAlbumArtist? artist = jsonConvert.convert<AlbumInfoAlbumArtist>(json['artist']);
  if (artist != null) {
    albumInfoAlbum.artist = artist;
  }
  final int? copyrightId = jsonConvert.convert<int>(json['copyrightId']);
  if (copyrightId != null) {
    albumInfoAlbum.copyrightId = copyrightId;
  }
  final String? briefDesc = jsonConvert.convert<String>(json['briefDesc']);
  if (briefDesc != null) {
    albumInfoAlbum.briefDesc = briefDesc;
  }
  final int? publishTime = jsonConvert.convert<int>(json['publishTime']);
  if (publishTime != null) {
    albumInfoAlbum.publishTime = publishTime;
  }
  final String? company = jsonConvert.convert<String>(json['company']);
  if (company != null) {
    albumInfoAlbum.company = company;
  }
  final String? picUrl = jsonConvert.convert<String>(json['picUrl']);
  if (picUrl != null) {
    albumInfoAlbum.picUrl = picUrl;
  }
  final String? commentThreadId = jsonConvert.convert<String>(json['commentThreadId']);
  if (commentThreadId != null) {
    albumInfoAlbum.commentThreadId = commentThreadId;
  }
  final String? blurPicUrl = jsonConvert.convert<String>(json['blurPicUrl']);
  if (blurPicUrl != null) {
    albumInfoAlbum.blurPicUrl = blurPicUrl;
  }
  final int? companyId = jsonConvert.convert<int>(json['companyId']);
  if (companyId != null) {
    albumInfoAlbum.companyId = companyId;
  }
  final int? pic = jsonConvert.convert<int>(json['pic']);
  if (pic != null) {
    albumInfoAlbum.pic = pic;
  }
  final int? status = jsonConvert.convert<int>(json['status']);
  if (status != null) {
    albumInfoAlbum.status = status;
  }
  final String? subType = jsonConvert.convert<String>(json['subType']);
  if (subType != null) {
    albumInfoAlbum.subType = subType;
  }
  final List<dynamic>? alias = (json['alias'] as List<dynamic>?)?.map(
          (e) => e).toList();
  if (alias != null) {
    albumInfoAlbum.alias = alias;
  }
  final String? description = jsonConvert.convert<String>(json['description']);
  if (description != null) {
    albumInfoAlbum.description = description;
  }
  final String? tags = jsonConvert.convert<String>(json['tags']);
  if (tags != null) {
    albumInfoAlbum.tags = tags;
  }
  final String? name = jsonConvert.convert<String>(json['name']);
  if (name != null) {
    albumInfoAlbum.name = name;
  }
  final int? id = jsonConvert.convert<int>(json['id']);
  if (id != null) {
    albumInfoAlbum.id = id;
  }
  final String? type = jsonConvert.convert<String>(json['type']);
  if (type != null) {
    albumInfoAlbum.type = type;
  }
  final int? size = jsonConvert.convert<int>(json['size']);
  if (size != null) {
    albumInfoAlbum.size = size;
  }
  final String? picidStr = jsonConvert.convert<String>(json['picId_str']);
  if (picidStr != null) {
    albumInfoAlbum.picidStr = picidStr;
  }
  final AlbumInfoAlbumInfo? info = jsonConvert.convert<AlbumInfoAlbumInfo>(json['info']);
  if (info != null) {
    albumInfoAlbum.info = info;
  }
  return albumInfoAlbum;
}