$NewSongDataLMusicFromJson function

NewSongDataLMusic $NewSongDataLMusicFromJson(
  1. Map<String, dynamic> json
)

Implementation

NewSongDataLMusic $NewSongDataLMusicFromJson(Map<String, dynamic> json) {
  final NewSongDataLMusic newSongDataLMusic = NewSongDataLMusic();
  final int? volumeDelta = jsonConvert.convert<int>(json['volumeDelta']);
  if (volumeDelta != null) {
    newSongDataLMusic.volumeDelta = volumeDelta;
  }
  final int? playTime = jsonConvert.convert<int>(json['playTime']);
  if (playTime != null) {
    newSongDataLMusic.playTime = playTime;
  }
  final int? dfsId = jsonConvert.convert<int>(json['dfsId']);
  if (dfsId != null) {
    newSongDataLMusic.dfsId = dfsId;
  }
  final int? bitrate = jsonConvert.convert<int>(json['bitrate']);
  if (bitrate != null) {
    newSongDataLMusic.bitrate = bitrate;
  }
  final int? sr = jsonConvert.convert<int>(json['sr']);
  if (sr != null) {
    newSongDataLMusic.sr = sr;
  }
  final String? name = jsonConvert.convert<String>(json['name']);
  if (name != null) {
    newSongDataLMusic.name = name;
  }
  final int? id = jsonConvert.convert<int>(json['id']);
  if (id != null) {
    newSongDataLMusic.id = id;
  }
  final int? size = jsonConvert.convert<int>(json['size']);
  if (size != null) {
    newSongDataLMusic.size = size;
  }
  final String? extension = jsonConvert.convert<String>(json['extension']);
  if (extension != null) {
    newSongDataLMusic.extension = extension;
  }
  return newSongDataLMusic;
}