Having fun with copilot... all I had was a class Token
with a handful of properties and then with every new line it
went from withoutX to withoutXandXandX.... enjoy... no idea if it would ever really run out of suggesstions there.
get payloadWithoutNulls(): any {
const payload = this.payload;
Object.keys(payload).forEach(key => payload[key] == null && delete payload[key]);
return payload;
}