MessageLinkInfo.fromJson constructor

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

Parse from a json

Implementation

factory MessageLinkInfo.fromJson(Map<String, dynamic> json) =>
    MessageLinkInfo(
      isPublic: json['is_public'],
      chatId: json['chat_id'],
      messageThreadId: json['message_thread_id'],
      message:
          json['message'] == null ? null : Message.fromJson(json['message']),
      mediaTimestamp: json['media_timestamp'],
      forAlbum: json['for_album'],
      extra: json['@extra'],
      clientId: json['@client_id'],
    );