fromJson static method
Implementation
static GiftCollection? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return GiftCollection(
id: (json['id'] as int?) ?? 0,
name: (json['name'] as String?) ?? '',
icon: Sticker.fromJson(tdMapFromJson(json['icon'])),
giftCount: (json['gift_count'] as int?) ?? 0,
);
}