Exspotify.Structs.Playlist (Exspotify v0.1.0)

View Source

Represents a playlist object from Spotify API.

Summary

Functions

Creates a Playlist struct from a map (typically from JSON).

Types

t()

@type t() :: %Exspotify.Structs.Playlist{
  collaborative: boolean() | nil,
  description: String.t() | nil,
  external_urls: Exspotify.Structs.ExternalUrls.t() | nil,
  href: String.t() | nil,
  id: String.t(),
  images: [Exspotify.Structs.Image.t()] | nil,
  name: String.t(),
  owner: Exspotify.Structs.User.t() | nil,
  public: boolean() | nil,
  snapshot_id: String.t() | nil,
  tracks: map() | nil,
  type: String.t(),
  uri: String.t()
}

Functions

from_map(map)

@spec from_map(map()) :: t()

Creates a Playlist struct from a map (typically from JSON).