fromJson static method
Implementation
static TrendingStickerSets? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return TrendingStickerSets(
totalCount: (json['total_count'] as int?) ?? 0,
sets: List<StickerSetInfo>.from(((json['sets'] as List<dynamic>?) ??
<dynamic>[])
.map((item) => StickerSetInfo.fromJson(item as Map<String, dynamic>?))
.toList()),
isPremium: (json['is_premium'] as bool?) ?? false,
);
}