skema/com.eignex.skema/JsonSpec/IfThenElse IfThenElse @Serializable@SerialName(value = "IfThenElse")data class IfThenElse(val condition: JsonSpec, val then: JsonSpec? = null, val otherwise: JsonSpec? = null) : JsonSpec(source)Conditional schema. If condition matches, then applies; otherwise otherwise applies. Either branch may be omitted. MembersMembers & Extensions Constructors IfThenElse Link copied to clipboard constructor(condition: JsonSpec, then: JsonSpec? = null, otherwise: JsonSpec? = null) Properties condition Link copied to clipboard val condition: JsonSpecThe condition spec. otherwise Link copied to clipboard val otherwise: JsonSpec?Applied when condition does not match. then Link copied to clipboard val then: JsonSpec?Applied when condition matches. Functions toJsonSchema Link copied to clipboard fun JsonSpec.toJsonSchema(): JsonObjectJSON Schema fragment describing the value this primitive validates. IfThenElse constructor(condition: JsonSpec, then: JsonSpec? = null, otherwise: JsonSpec? = null)(source) condition val condition: JsonSpec(source)The condition spec. otherwise val otherwise: JsonSpec?(source)Applied when condition does not match. then val then: JsonSpec?(source)Applied when condition matches.