toBoolean
toBoolean(
value):boolean|undefined
Defined in: schemaGenerateUtils.ts:28
Converts a value to a boolean, preserving undefined for empty/missing input instead of
coercing it to false. Callers need to tell “explicitly FALSE” apart from “not specified” so
the XML builder can omit the tag entirely rather than writing out a literal false.
Parameters
Section titled “Parameters”The raw field value.
Returns
Section titled “Returns”boolean | undefined
The boolean value, or undefined if empty/missing.