package mapper

import "web-qudo-be/app/module/hero_contents/response"

func ToHeroContentResponse(data map[string]interface{}) response.HeroContentsResponse {
	return response.HeroContentsResponse{
		ID:               data["id"].(int),
		PrimaryTitle:     data["primary_title"].(string),
		SecondaryTitle:   data["secondary_title"].(string),
		Description:      data["description"].(string),
		PrimaryCTA:       data["primary_cta"].(string),
		SecondaryCTAText: data["secondary_cta_text"].(string),
		ImagePath:        data["image_path"].(string),
		ImageURL:         data["image_url"].(string),
	}
}