GiftChatThemes.fromJson constructor

GiftChatThemes.fromJson(
  1. Map<String, dynamic> json
)

Parses a GiftChatThemes from TDLib JSON.

Implementation

factory GiftChatThemes.fromJson(Map<String, dynamic> json) => GiftChatThemes(
  themes: _readList<GiftChatTheme>(
    json['themes'],
    (e) => _readObject(e, GiftChatTheme.fromJson),
  ),
  nextOffset: _readString(json['next_offset']),
  extra: json['@extra'],
  clientId: _readClientId(json['@client_id']),
);