I want to send a request to an API in the below format
curl --request POST \
--header 'Authorization: Token <token-id>' \
--header 'Content-type: application/json' \
--data '{"files": [{"name": "filename", "content": "xyz"}]}' \
--url 'https://sampleurl.com'
How to do that? I've seen various questions/posts but none worked for me. P.S, I am new to Flutter.