package view import fr.louveauAmine.cvApi.dao.INTEREST data class Interest( val theme: String, val description: String ) data class DeleteInterest( val theme: String ) fun INTEREST.toView(): Interest = Interest(theme = this.theme, description = this.description) fun Interest.toEntity(): INTEREST = INTEREST(theme = this.theme, description = this.description)