Exspotify.Structs.Image (Exspotify v0.1.0)

View Source

Represents an image object from Spotify API. Used by albums, artists, playlists, users, shows, and audiobooks.

Summary

Functions

Creates an Image struct from a map (typically from JSON).

Types

t()

@type t() :: %Exspotify.Structs.Image{
  height: integer() | nil,
  url: String.t(),
  width: integer() | nil
}

Functions

from_map(map)

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

Creates an Image struct from a map (typically from JSON).