fromJson static method

StickerSet fromJson(
  1. Map<String, dynamic> json
)

Creates a object from a json

Implementation

static StickerSet fromJson(Map<String, dynamic> json) {
  return StickerSet(
    name: json['name']!,
    title: json['title']!,
    stickerType: json['sticker_type'],
    isAnimated: json['is_animated']!,
    isVideo: json['is_video']!,
    stickers: Sticker.listFromJsonArray(json['stickers']!),
    thumb: callIfNotNull(PhotoSize.fromJson, json['thumb']),
  );
}