fromMap static method

ClearAllDraftMessages? fromMap(
  1. Map<String, dynamic>? _map
)
override

Construct from Map.

Implementation

static ClearAllDraftMessages? 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 exclude_secret_chats = _map['exclude_secret_chats']! as bool;
  return ClearAllDraftMessages(
    extra: extra,
    clientId: clientId,
    exclude_secret_chats: exclude_secret_chats,
  );
}