fromMap static method

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

Construct from Map.

Implementation

static InternalLinkTypeStickerSet? 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_set_name = _map['sticker_set_name']! as String;
  var expect_custom_emoji = _map['expect_custom_emoji']! as bool;
  return InternalLinkTypeStickerSet(
    extra: extra,
    clientId: clientId,
    sticker_set_name: sticker_set_name,
    expect_custom_emoji: expect_custom_emoji,
  );
}