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(json['gift'] as Map<String, dynamic>?)!,
    receivedGiftId: (json['received_gift_id'] as String?) ?? '',
  );
}