Maybe change this into a `Integer` field, then in toXContent method we can do this:
```
if (minChildren != null) {
   builder.field("min_children", minChildren);
}
```