fromMap static method

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

Construct from Map.

Implementation

static ChangeStickerSet? 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 set_id = _map['set_id']! as int64;
  var is_installed = _map['is_installed']! as bool;
  var is_archived = _map['is_archived']! as bool;
  return ChangeStickerSet(
    extra: extra,
    clientId: clientId,
    set_id: set_id,
    is_installed: is_installed,
    is_archived: is_archived,
  );
}