FoundStories.fromJson constructor

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

Parses a FoundStories from TDLib JSON.

Implementation

factory FoundStories.fromJson(Map<String, dynamic> json) => FoundStories(
  totalCount: _readInt(json['total_count']),
  stories: _readList<Story>(
    json['stories'],
    (e) => _readObject(e, Story.fromJson),
  ),
  nextOffset: _readString(json['next_offset']),
  extra: json['@extra'],
  clientId: _readClientId(json['@client_id']),
);