MessageForwardInfo.fromJson constructor

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

Parse from a json

Implementation

factory MessageForwardInfo.fromJson(Map<String, dynamic> json) => MessageForwardInfo(
  origin: MessageForwardOrigin.fromJson(json['origin']),
  date: json['date'],
  publicServiceAnnouncementType: json['public_service_announcement_type'],
  fromChatId: json['from_chat_id'],
  fromMessageId: json['from_message_id'],
);