const payload = {
SecondaryAgentId: '12345',
UserName: 'John Doe',
UserEmail: 'john.doe@example.com',
UserPhone: '+1234567890',
SecondaryAgentServices: ['Service1', 'Service2'],
BranchAssignments: ['Branch1', 'Branch2'],
SecondaryAgentUserDocs: 'document.pdf',
};
.
Here other element expect array will send in formData but array will get Stringified.