fromMap static method
override
Construct from Map.
Implementation
static DraftMessage? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
if (_ != CONSTRUCTOR) return null;
var extra = _map['@extra'];
var clientId = _map['@clientId'];
var reply_to_message_id = _map['reply_to_message_id']! as int;
var date = _map['date']! as int;
var input_message_text =
InputMessageContent.fromMap(_map['input_message_text'])!;
return DraftMessage(
extra: extra,
clientId: clientId,
reply_to_message_id: reply_to_message_id,
date: date,
input_message_text: input_message_text,
);
}