public DocumentFormattingParamsDto(org.eclipse.lsp4j.DocumentFormattingParams o) {
if (o.getOptions() == null) {
setOptions((org.eclipse.lsp4j.FormattingOptions)null);
} else {
org.eclipse.lsp4j.FormattingOptions optionsVal= new org.eclipse.lsp4j.FormattingOptions();
for (Entry<String, org.eclipse.lsp4j.jsonrpc.messages.Either3<java.lang.String, java.lang.Number, java.lang.Boolean>> optionsValX : o.getOptions().entrySet()) {
org.eclipse.lsp4j.jsonrpc.messages.Either3<java.lang.String, java.lang.Number, java.lang.Boolean> optionsValY;
if (optionsValX.getValue().isFirst()) {
java.lang.String optionsValYe = (java.lang.String)makeDto(optionsValX.getValue().getFirst());;
optionsValY= Either3.forFirst(optionsValYe);
} else if (optionsValX.getValue().isSecond()) {
java.lang.Number optionsValYe = (java.lang.Number)makeDto(optionsValX.getValue().getSecond());;
optionsValY= Either3.forSecond(optionsValYe);
} else {
java.lang.Boolean optionsValYe = (java.lang.Boolean)makeDto(optionsValX.getValue().getThird());;
optionsValY= Either3.forThird(optionsValYe);
}
optionsVal.put(optionsValX.getKey(), optionsValY);
}
setOptions((org.eclipse.lsp4j.FormattingOptions)optionsVal);
}
if (o.getTextDocument() == null) {
setTextDocument((org.eclipse.lsp4j.TextDocumentIdentifier)null);
} else {
org.eclipse.lsp4j.TextDocumentIdentifier textDocumentVal = new TextDocumentIdentifierDto(o.getTextDocument());
setTextDocument((org.eclipse.lsp4j.TextDocumentIdentifier)textDocumentVal);
}
}