toJson method
Implementation
Map<String, dynamic> toJson() {
final _json = <String, dynamic>{};
if (genreId != null) {
_json[r'GenreId'] = genreId;
} else {
_json[r'GenreId'] = null;
}
if (genre != null) {
_json[r'Genre'] = genre;
} else {
_json[r'Genre'] = null;
}
if (playListId != null) {
_json[r'PlayListId'] = playListId;
} else {
_json[r'PlayListId'] = null;
}
if (playlist != null) {
_json[r'Playlist'] = playlist;
} else {
_json[r'Playlist'] = null;
}
return _json;
}