src/vs/workbench/services/keybinding/common/keybindingEditing.ts/KeybindingsEditingService/asObject
class KeybindingsEditingService:	private asObject(key: string, command: string | null, when: string | undefined, negate: boolean): any {
		const object: any = { key };
		if (command) {
			object['command'] = negate ? `-${command}` : command;
		}
		if (when) {
			object['when'] = when;
		}
		return object;
	}