Build the config object to persist from a condition config dialog's form data.
This is the single serializer shared by every condition save path (top-level,
sub-condition, swing, keyword, event and stage). Multi-field types return the
object they edit; single-value types return { value }, the same shape
TriggerConditionModel.migrateData produces for legacy strings.
Config: type selects the field layout; formData keys used by type:
Build the
configobject to persist from a condition config dialog's form data.This is the single serializer shared by every condition save path (top-level, sub-condition, swing, keyword, event and stage). Multi-field types return the object they edit; single-value types return
{ value }, the same shapeTriggerConditionModel.migrateDataproduces for legacy strings.Config:
typeselects the field layout;formDatakeys used by type:compelCheck:opt_attr_*,opt_label_*,opt_formula_*,opt_keywords_*,opt_advantage_*,globalKeywords,advantage,allowTake10,hideDCs.valueMatches:lhs,op,rhs.attribute+op+formula: rollCheck,{ attribute, op, formula }.currencyBalance:op,val, optionalcurrencyId.op+val(+ optionalvital): numeric threshold,{ op, val, vital? }.val+op+count: scryCardOfValue,{ val, op, count }.attribute+dc:{ attribute, dc }.subject/marked: isMarkedByOwner,{ value: "<subject> <marked>" }(empty parts dropped).{ value: formData.value }.