Function UploadAttachmentOptionsToJSON