fromJson static method
Implementation
static UpgradedGiftBackdrop? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return UpgradedGiftBackdrop(
id: (json['id'] as int?) ?? 0,
name: (json['name'] as String?) ?? '',
colors: UpgradedGiftBackdropColors.fromJson(
tdMapFromJson(json['colors']),
),
rarity: UpgradedGiftAttributeRarity.fromJson(
tdMapFromJson(json['rarity']),
),
);
}