Redemption.fromJson constructor

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

Implementation

factory Redemption.fromJson(Map<String, dynamic> json) => Redemption(
      id: json["_id"],
      redeemId: json["redeem_id"],
      prizeName: json["prize_name"],
      imageUrl: json["image_url"],
      createdAt: json["created_at"],
      updatedAt: json["updated_at"],
      points: json["points"],
      pointType: json["point_type"],
      state: json["state"],
      customData: CustomData.fromJson(json["custom_data"]),
      isRedemptionCustomPrize: json["is_redemption_custom_prize"],
      prizeDescription: json["prize_description"],
    );