$NewSongEntityFromJson function
Implementation
NewSongEntity $NewSongEntityFromJson(Map<String, dynamic> json) {
final NewSongEntity newSongEntity = NewSongEntity();
final List<NewSongData>? data = (json['data'] as List<dynamic>?)?.map(
(e) => jsonConvert.convert<NewSongData>(e) as NewSongData).toList();
if (data != null) {
newSongEntity.data = data;
}
final int? code = jsonConvert.convert<int>(json['code']);
if (code != null) {
newSongEntity.code = code;
}
return newSongEntity;
}