StoryInfo.fromJson constructor

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

Parses a StoryInfo from TDLib JSON.

Implementation

factory StoryInfo.fromJson(Map<String, dynamic> json) => StoryInfo(
  storyId: _readInt(json['story_id']),
  date: _readInt(json['date']),
  isForCloseFriends: _readBool(json['is_for_close_friends']),
  isLive: _readBool(json['is_live']),
);