(stringify = true)
| 148 | } |
| 149 | |
| 150 | toJSON (stringify = true) { |
| 151 | const props = { |
| 152 | conditions: this.conditions.toJSON(false), |
| 153 | priority: this.priority, |
| 154 | event: this.ruleEvent, |
| 155 | name: this.name |
| 156 | } |
| 157 | if (stringify) { |
| 158 | return JSON.stringify(props) |
| 159 | } |
| 160 | return props |
| 161 | } |
| 162 | |
| 163 | /** |
| 164 | * Priorizes an array of conditions based on "priority" |
no outgoing calls
no test coverage detected