class RecipeV4RequestToCreateRecipeRequestConverter extends AbstractConversionServiceAwareConverter<RecipeV4Request, CreateRecipeRequest> {

    @Override
    public CreateRecipeRequest convert(RecipeV4Request source) {
        CreateRecipeRequest recipe = new CreateRecipeRequest();
        recipe.setRecipeName(source.getName());
        recipe.setDescription(source.getDescription());
        recipe.setType(source.getType().name());
        recipe.setRecipeContent(source.getContent());
        return recipe;
    }

}