interface Profile { firstName: string; lastName: string; avatar: string; bio?: null; } interface Posts { id: number; title: string; published: boolean; views: number; } interface Settings { theme: string; notifications: boolean; language: string; } interface Root { id: number; username: string; email: string; isPremium: boolean; score: number; profile: Profile; posts: Posts[]; settings: Settings; }