fromJson static method
Inherited by: CraftGiftResultFail CraftGiftResultInvalidGift CraftGiftResultSuccess CraftGiftResultTooEarly
Implementation
static CraftGiftResultSuccess? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return CraftGiftResultSuccess(
gift: UpgradedGift.fromJson(tdMapFromJson(json['gift'])),
receivedGiftId: (json['received_gift_id'] as String?) ?? '',
);
}