fromMap static method
override
Construct from Map.
Implementation
static MessageSendingStateFailed? 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 error = Error.fromMap(_map['error'])!;
var can_retry = _map['can_retry']! as bool;
var need_another_sender = _map['need_another_sender']! as bool;
var retry_after = _map['retry_after']! as double;
return MessageSendingStateFailed(
extra: extra,
clientId: clientId,
error: error,
can_retry: can_retry,
need_another_sender: need_another_sender,
retry_after: retry_after,
);
}