package com.red.circle.other.inner.model.dto.activity.rule;

import com.red.circle.tool.core.json.JacksonUtils;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 房间奖励.
 *
 * @author pengliang on 2021/6/22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class RoomRewardContent implements Serializable {

  private static final long serialVersionUID = 1L;

  /**
   * 数量.
   */
  private BigDecimal quantity;


  public static RoomRewardContent serializable(String content) {
    return JacksonUtils.readValue(content, RoomRewardContent.class);
  }

}
