package pl.polskalokalnie.moderation;

public record ForbiddenWordResponse(Long id, String word) {

    public static ForbiddenWordResponse from(ForbiddenWord forbiddenWord) {
        return new ForbiddenWordResponse(forbiddenWord.getId(), forbiddenWord.getWord());
    }
}
