StoryInteractions.fromJson constructor
Parses a StoryInteractions from TDLib JSON.
Implementation
factory StoryInteractions.fromJson(Map<String, dynamic> json) =>
StoryInteractions(
totalCount: _readInt(json['total_count']),
totalForwardCount: _readInt(json['total_forward_count']),
totalReactionCount: _readInt(json['total_reaction_count']),
interactions: _readList<StoryInteraction>(
json['interactions'],
(e) => _readObject(e, StoryInteraction.fromJson),
),
nextOffset: _readString(json['next_offset']),
extra: json['@extra'],
clientId: _readClientId(json['@client_id']),
);