fromMap static method

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

Construct from Map.

Implementation

static GetTrendingStickerSets? 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 sticker_type = StickerType.fromMap(_map['sticker_type'])!;
  var offset = _map['offset']! as int;
  var limit = _map['limit']! as int;
  return GetTrendingStickerSets(
    extra: extra,
    clientId: clientId,
    sticker_type: sticker_type,
    offset: offset,
    limit: limit,
  );
}