ChatEventForumTopicPinned.fromJson constructor

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

Parse from a json

Implementation

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