fromJson static method
Inherited by: UpgradedGiftAttributeIdBackdrop UpgradedGiftAttributeIdModel UpgradedGiftAttributeIdSymbol
Implementation
static UpgradedGiftAttributeIdSymbol? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return UpgradedGiftAttributeIdSymbol(
stickerId: (json['sticker_id'] is int
? json['sticker_id'] as int
: int.tryParse(json['sticker_id']?.toString() ?? '')) ??
0,
);
}