function requiresFormDataUpload(payload) {
    return (typeof payload === "object" &&
        payload !== null &&
        Object.values(payload).some((v) => Array.isArray(v)
            ? v.some(requiresFormDataUpload)
            : v instanceof platform_node_js_1.InputFile || requiresFormDataUpload(v)));
}
/**
 * Determines for a given payload if it may be sent as JSON, or if it has to be
 * uploaded via multipart/form-data. Returns `true` in the latter case and
 * `false` in the former.
 *
 * @param payload The payload to analyse
 */
Determines for a given payload if it may be sent as JSON, or if it has to be
uploaded via multipart/form-data. Returns `true` in the latter case and
`false` in the former.

@param payload The payload to analyse
Determines for a given payload if it may be sent as JSON or if it has to be uploaded via multipart / form - data . Returns ` true ` in the latter case and ` false ` in the former . @param payload The payload to analyse
function requiresFormDataUpload(payload) {
    return (typeof payload === "object" &&
        payload !== null &&
        Object.values(payload).some((v) => Array.isArray(v)
            ? v.some(requiresFormDataUpload)
            : v instanceof platform_node_js_1.InputFile || requiresFormDataUpload(v)));
}
function requiresFormDataUpload ( payload ) { return ( typeof payload === "object" && payload !== null && Object . values ( payload ) . some ( ( v ) => Array . isArray ( v ) ? v . some ( requiresFormDataUpload ) : v instanceof platform_node_js_1 . InputFile || requiresFormDataUpload ( v ) ) ) ; }
Determines for a given payload if it may be sent as JSON, or if it has to be
 uploaded via multipart/form-data.
Determines for a given payload if it may be sent as JSON or if it has to be uploaded via multipart / form - data .