export function dedupPayloads(payloads) {
    const filtered = payloads?.filter((payload, index, array) => index ===
        array.findIndex((p) => JSON.stringify(p) === JSON.stringify(payload)));
    return filtered != null && filtered.length > 0 ? filtered : undefined;
}
