ChatEventForumTopicPinned.fromJson constructor

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

Parses a ChatEventForumTopicPinned from TDLib JSON.

Implementation

factory ChatEventForumTopicPinned.fromJson(Map<String, dynamic> json) =>
    ChatEventForumTopicPinned(
      oldTopicInfo: _readOptional(
        json['old_topic_info'],
        ForumTopicInfo.fromJson,
      ),
      newTopicInfo: _readOptional(
        json['new_topic_info'],
        ForumTopicInfo.fromJson,
      ),
    );