toPointsInPeriod static method

PointsInPeriod toPointsInPeriod(
  1. PointsInPeriodResponse response
)

Implementation

static domain.PointsInPeriod toPointsInPeriod(
  infra.PointsInPeriodResponse response,
) {
  return domain.PointsInPeriod(
    ok: response.ok,
    startDate: response.object.startDate,
    endDate: response.object.endDate,
    pointTypeId: response.object.pointTypeId,
    points: response.object.points,
  );
}