SavedMessagesTopic.fromJson constructor
Parses a SavedMessagesTopic from TDLib JSON.
Implementation
factory SavedMessagesTopic.fromJson(Map<String, dynamic> json) =>
SavedMessagesTopic(
id: _readInt(json['id']),
type: _readObject(json['type'], SavedMessagesTopicType.fromJson),
isPinned: _readBool(json['is_pinned']),
order: _readInt(json['order']),
lastMessage: _readOptional(json['last_message'], Message.fromJson),
draftMessage: _readOptional(
json['draft_message'],
DraftMessage.fromJson,
),
);