DraftMessage.fromJson constructor

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

Parse from a json

Implementation

factory DraftMessage.fromJson(Map<String, dynamic> json) => DraftMessage(
  replyToMessageId: json['reply_to_message_id'] ?? 0,
  date: json['date'],
  inputMessageText: InputMessageContent.fromJson(json['input_message_text']),
);