fromJson static method
Inherited by: MessageReplyToMessage MessageReplyToStory
Implementation
static MessageReplyToMessage? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return MessageReplyToMessage(
chatId: (json['chat_id'] as int?) ?? 0,
messageId: (json['message_id'] as int?) ?? 0,
quote: TextQuote.fromJson(tdMapFromJson(json['quote'])),
checklistTaskId: (json['checklist_task_id'] as int?) ?? 0,
pollOptionId: (json['poll_option_id'] as String?) ?? '',
origin: MessageOrigin.fromJson(tdMapFromJson(json['origin'])),
originSendDate: (json['origin_send_date'] as int?) ?? 0,
content: MessageContent.fromJson(tdMapFromJson(json['content'])),
);
}