ArtistDonationItem

class yandex_music.artist.artist_donation_item.ArtistDonationItem

Класс, представляющий элемент блока донатов артиста.

Note

Известные значения поля type: donation_item.

type

Тип элемента.

Type:

str, optional

data

Данные доната.

Type:

yandex_music.ArtistDonationData, optional

client

Клиент Yandex Music.

Type:

yandex_music.Client, optional

classmethod de_json(data, client)

Десериализация объекта.

Parameters:
  • data (dict) – Поля и значения десериализуемого объекта.

  • client (yandex_music.Client, optional) – Клиент Yandex Music.

Returns:

Элемент блока донатов артиста.

Return type:

yandex_music.ArtistDonationItem