{ "id": "1234-5678-9010", "componentType": "Flex", "name": "ConditionalInMutation", "properties": {}, "bindingProperties": { "user": { "type": "Data", "bindingProperties": { "model": "User", "predicate": { "field": "firstName", "operand": "Johnny", "operator": "eq" } } } }, "children": [ { "componentType": "Text", "name": "MutatedValue", "properties": { "label": { "value": "Default Value" } } }, { "componentType": "Button", "name": "ConditionalPropertyMutation", "events": { "onClick": { "action": "Amplify.Mutation", "parameters": { "state": { "componentName": "MutatedValue", "property": "label", "set": { "condition": { "property": "user", "field": "age", "operator": "eq", "operand": 45, "then": { "value": "Conditional Value" }, "else": { "value": "Unconditional Value" } } } } } } }, "properties": { "children": { "value": "Apply Conditional Property Mutation" } } } ], "schemaVersion": "1.0" }