Create doctype contact with child table using frappe code

when create new contact doctype usng frappe i have to enter First Name value the problem is when i need to give Links field which is child table how can i creat contact with child table Reference using frappe

when put value of links equal to
links=[{“link_doctype”: “Customer”, “link_name”: “Ismaeel”}]
this error appear
“/home/last/frappebench/apps/frappe/frappe/contacts/doctype/contact/contact.py\”, line 28, in autoname\n self.name = self.name + ‘-’ + link.link_name.strip()\nAttributeError: ‘str’ object has no attribute ‘link_name’\n"]"}