public static List <ContextTrack> GetNextTracks([NotNull] JObject obj) { if (!(obj["next_tracks"] is JArray prevTracks)) { return(null); } return(ProtoUtils.JsonToContextTracks(prevTracks)); }
public static ContextTrack GetTrack([NotNull] JObject obj) { var track = obj["track"]; return(track == null ? null : ProtoUtils.JsonToContextTrack(track)); }