fromMap static method
override
Construct from Map.
Implementation
static InputMessageText? 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 text = FormattedText.fromMap(_map['text'])!;
var disable_web_page_preview = _map['disable_web_page_preview']! as bool;
var clear_draft = _map['clear_draft']! as bool;
return InputMessageText(
extra: extra,
clientId: clientId,
text: text,
disable_web_page_preview: disable_web_page_preview,
clear_draft: clear_draft,
);
}