StoryAlbums.fromJson constructor

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

Parses a StoryAlbums from TDLib JSON.

Implementation

factory StoryAlbums.fromJson(Map<String, dynamic> json) => StoryAlbums(
  albums: _readList<StoryAlbum>(
    json['albums'],
    (e) => _readObject(e, StoryAlbum.fromJson),
  ),
  extra: json['@extra'],
  clientId: _readClientId(json['@client_id']),
);