package mapper

import (
	"campaign-pool-be/app/database/entity"
	res "campaign-pool-be/app/module/master_statuses/response"
)

func MasterStatusesResponseMapper(masterStatusesReq *entity.MasterStatuses) (masterStatusesRes *res.MasterStatusesResponse) {
	if masterStatusesReq != nil {
		masterStatusesRes = &res.MasterStatusesResponse{
			ID:       masterStatusesReq.ID,
			Name:     masterStatusesReq.Name,
			IsActive: masterStatusesReq.IsActive,
		}
	}
	return masterStatusesRes
}
