TrendingStickerSets.fromJson constructor

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

Parse from a json

Implementation

factory TrendingStickerSets.fromJson(Map<String, dynamic> json) =>
    TrendingStickerSets(
      totalCount: json['total_count'],
      sets: List<StickerSetInfo>.from((json['sets'] ?? [])
          .map((item) => StickerSetInfo.fromJson(item))
          .toList()),
      isPremium: json['is_premium'],
      extra: json['@extra'],
      clientId: json['@client_id'],
    );