Fixing Sendgrid Component ASM fields

Currently the Sendgrid component doesn’t work when you try to specify an ASM - the object is parsed as a string but the Sendgrid API requires it to be an integer.

Unexpected error (status code: 400): { "headers": { "server": "nginx", "date": "Fri, 10 Mar 2023 00:51:02 GMT", "content-type": "application/json", "content-length": "300", "connection": "close", "access-control-allow-origin": "https://sendgrid.api-docs.io", "access-control-allow-methods": "POST", "access-control-allow-headers": "Authorization, Content-Type, On-behalf-of, x-sg-elas-acl", "access-control-max-age": "600", "x-no-cors-reason": "https://sendgrid.com/docs/Classroom/Basics/API/cors.html", "strict-transport-security": "max-age=600; includeSubDomains" }, "body": { "errors": [ { "message": "Invalid type. Expected: object, given: string.", "field": "personalizations.0.bcc.0", "help": "http://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/errors.html#message.personalizations.bcc" }, { "message": "Invalid type. Expected: object, given: string.", "field": "asm", "help": null } ] } }

I’ve opened a PR to fix this and add ASM group_id and groups_to_display as their own optional params to fix this

Let me know if you need any more information!