class ActorDetailResponseToActor {

    public Actor map(ActorDetailResponse response){
        Actor actor = new Actor();
        actor.setActorId(response.getId());
        actor.setProfileUrl(response.getProfilePath());
        actor.setName(response.getName());
        actor.setBiography(response.getBiography());
        actor.setDeathDay((String) response.getDeathday());
        actor.setPlaceOfBirth(defaultValueIfNull(response.getPlaceOfBirth()));
        actor.setPopularity(response.getPopularity());
        checkAgeThenSet(response , actor);
        setCinemas(response , actor);
        setPosters(response , actor);
        setBackgroundPosters(response , actor);
        return actor;
    }

}