---
updatedAt: 2026-09-04T07:08:33.000Z
agentTools:
  projectIndex: https://documentation.indigitall.com/llms.txt
---

# Customer Creation and Update

To add or update customer fields on JSON object, please do the following:

```swift Dart
var fields = {"fieldName1": "value", "fieldName2": "value"};

IndigitallFlutterPlugin.assignOrUpdateValueToCustomerFields(
    (fields),
    (customer) => {
          // Do something
        },
    (error) => {
          // Do something else
        });
```

For example:

```javascript
IndigitallFlutterPlugin.assignOrUpdateValueToCustomerFields({
    "email": "test@mydomain.com",
    "phone": "123456",
    "name": "Peter",
    "last_name": "Brice"
    },(success) => {
      // do something
    }, (error) => {
      // do something else
    });
```

<br />

Otherwise, if you want to eliminate values from fields, you have to do this with an arrayList of the field names:

```swift Dart
var fieldsArray = ["field1", "field2"];

IndigitallFlutterPlugin.deleteValuesFromCustomerFields(
    fieldsArray,
    (customer) => {
          // Do something
        },
    (error) => {
          // Do something else
        });
```