fromMap static method
override
Construct from Map.
Implementation
static MessageSendOptions? 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 disable_notification = _map['disable_notification']! as bool;
var from_background = _map['from_background']! as bool;
var protect_content = _map['protect_content']! as bool;
var update_order_of_installed_sticker_sets =
_map['update_order_of_installed_sticker_sets']! as bool;
var scheduling_state =
MessageSchedulingState.fromMap(_map['scheduling_state']);
var sending_id = _map['sending_id']! as int;
return MessageSendOptions(
extra: extra,
clientId: clientId,
disable_notification: disable_notification,
from_background: from_background,
protect_content: protect_content,
update_order_of_installed_sticker_sets:
update_order_of_installed_sticker_sets,
scheduling_state: scheduling_state,
sending_id: sending_id,
);
}