fromJson static method

GiftForResale? fromJson(
  1. Map<String, dynamic>? json
)

Implementation

static GiftForResale? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return GiftForResale(
    gift: UpgradedGift.fromJson(tdMapFromJson(json['gift'])),
    receivedGiftId: (json['received_gift_id'] as String?) ?? '',
  );
}