couponInfoToEntity static method
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,
);
}