StickerSetInfo.fromJson constructor

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

Parse from a json

Implementation

factory StickerSetInfo.fromJson(Map<String, dynamic> json) => StickerSetInfo(
  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'],
  size: json['size'],
  covers: List<Sticker>.from((json['covers'] ?? []).map((item) => Sticker.fromJson(item)).toList()),
);