couponInfoToEntity static method

CouponInfo couponInfoToEntity(
  1. CouponInfoResponse response
)

Implementation

static domain.CouponInfo couponInfoToEntity(infra.CouponInfoResponse response) {
  return domain.CouponInfo(
    ok: response.ok,
    name: response.name,
    state: response.state,
    id: response.id,
    prizePoints: response.prizePoints,
    prizePointType: response.prizePointType?.toString(),
    prizeName: response.prizeName,
    prizeDescription: response.prizeDescription,
    prizeImageUrl: response.prizeImageUrl,
    prizeTags: response.prizeTags,
    expiresAt: response.expiresAt,
  );
}