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'],
  message: json['message'] == null ? null : Message.fromJson(json['message']),
  mediaTimestamp: json['media_timestamp'],
  forAlbum: json['for_album'],
  forComment: json['for_comment'],
  extra: json['@extra'],
  clientId: json['@client_id'],
);