getByUrl method

Future<Playlist> getByUrl(
  1. String url
)

Gets the Playlist associated with the provided url.

Implementation

Future<Playlist> getByUrl(String url) async {
  final json = await _controller.resolveUrl(url);
  final playlist = jsonDecode(json);
  return Playlist.fromJson(playlist);
}