const value: { id?: unknown; config?: unknown } | string | number | boolean | null = JSON.parse(raw);
if (value && typeof value === 'object' && typeof value.id === 'string') {
if (value.config && typeof value.config === 'object') {
const config: Record<string, string> = {};
for (const [key, configValue] of Object.entries(value.config)) {