StickerSet.fromJson constructor
Parse from a json
Implementation
factory StickerSet.fromJson(Map<String, dynamic> json) => StickerSet(
id: int.parse(json['id']),
title: json['title'],
name: json['name'],
thumbnail: json['thumbnail'] == null ? null : Thumbnail.fromJson(json['thumbnail']),
thumbnailOutline: List<ClosedVectorPath>.from((json['thumbnail_outline'] ?? []).map((item) => ClosedVectorPath.fromJson(item)).toList()),
isInstalled: json['is_installed'],
isArchived: json['is_archived'],
isOfficial: json['is_official'],
isAnimated: json['is_animated'],
isMasks: json['is_masks'],
isViewed: json['is_viewed'],
stickers: List<Sticker>.from((json['stickers'] ?? []).map((item) => Sticker.fromJson(item)).toList()),
emojis: List<Emojis>.from((json['emojis'] ?? []).map((item) => Emojis.fromJson(item)).toList()),
extra: json['@extra'],
clientId: json['@client_id'],
);