Force GSON para usar construtor específico

public class UserAction {
    private final UUID uuid;
    private String userId;
    /* more fields, setters and getters here */

    public UserAction(){
        this.uuid = UUID.fromString(new com.eaio.uuid.UUID().toString());
    }

    public UserAction(UUID uuid){
        this.uuid = uuid;
    }
    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final UserAction other = (UserAction) obj;
        if (this.uuid != other.uuid && (this.uuid == null || !this.uuid.equals(other.uuid))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 53 * hash + (this.uuid != null ? this.uuid.hashCode() : 0);
        return hash;
    }
}

Estou usando o Gson para serilizar e desserializar essa classe. Como hoje eu tive que adicionar um UUID final nesse objeto. Não tenho nenhum problema de serialização. Preciso forçar o gson a usarpublic UserAction(UUID uuid) construtor ao desserializar. Como posso conseguir isso?

questionAnswers(3)

yourAnswerToTheQuestion