fromMap static method
override
Construct from Map.
Implementation
static InputMessageForwarded? 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 from_chat_id = _map['from_chat_id']! as int;
var message_id = _map['message_id']! as int;
var in_game_share = _map['in_game_share']! as bool;
var copy_options = MessageCopyOptions.fromMap(_map['copy_options']);
return InputMessageForwarded(
extra: extra,
clientId: clientId,
from_chat_id: from_chat_id,
message_id: message_id,
in_game_share: in_game_share,
copy_options: copy_options,
);
}