SupermodelIRToJSON() — typescript-sdk Function Reference
Architecture documentation for the SupermodelIRToJSON() function in SupermodelIR.ts from the typescript-sdk codebase.
Entity Profile
Dependency Diagram
graph TD 5cb4729f_dd4c_43a0_ffb5_eac90b768885["SupermodelIRToJSON()"] 8ffa46c4_6e6e_a02b_f3e7_7fe17cc2b8d3["SupermodelIR.ts"] 5cb4729f_dd4c_43a0_ffb5_eac90b768885 -->|defined in| 8ffa46c4_6e6e_a02b_f3e7_7fe17cc2b8d3 4a8cd700_b14f_2040_80b0_954c9fac0854["SupermodelIRAsyncToJSON()"] 4a8cd700_b14f_2040_80b0_954c9fac0854 -->|calls| 5cb4729f_dd4c_43a0_ffb5_eac90b768885 a091ded7_415c_61e3_cd32_a9972789d7fc["SupermodelIRStatsToJSON()"] 5cb4729f_dd4c_43a0_ffb5_eac90b768885 -->|calls| a091ded7_415c_61e3_cd32_a9972789d7fc 5e30a8a7_9031_d402_28fc_d62853df630c["CodeGraphEnvelopeMetadataToJSON()"] 5cb4729f_dd4c_43a0_ffb5_eac90b768885 -->|calls| 5e30a8a7_9031_d402_28fc_d62853df630c 322cabad_6eb9_dfe1_d348_9568f28ae3c6["SupermodelIRGraphToJSON()"] 5cb4729f_dd4c_43a0_ffb5_eac90b768885 -->|calls| 322cabad_6eb9_dfe1_d348_9568f28ae3c6 style 5cb4729f_dd4c_43a0_ffb5_eac90b768885 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/models/SupermodelIR.ts lines 153–170
export function SupermodelIRToJSON(value?: SupermodelIR | null): any {
if (value == null) {
return value;
}
return {
'repo': value['repo'],
'version': value['version'],
'schemaVersion': value['schemaVersion'],
'generatedAt': ((value['generatedAt']).toISOString()),
'summary': value['summary'],
'stats': SupermodelIRStatsToJSON(value['stats']),
'metadata': CodeGraphEnvelopeMetadataToJSON(value['metadata']),
'domains': ((value['domains'] as Array<any>).map(DomainSummaryToJSON)),
'graph': SupermodelIRGraphToJSON(value['graph']),
'artifacts': value['artifacts'] == null ? undefined : ((value['artifacts'] as Array<any>).map(SupermodelArtifactToJSON)),
};
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does SupermodelIRToJSON() do?
SupermodelIRToJSON() is a function in the typescript-sdk codebase, defined in src/models/SupermodelIR.ts.
Where is SupermodelIRToJSON() defined?
SupermodelIRToJSON() is defined in src/models/SupermodelIR.ts at line 153.
What does SupermodelIRToJSON() call?
SupermodelIRToJSON() calls 3 function(s): CodeGraphEnvelopeMetadataToJSON, SupermodelIRGraphToJSON, SupermodelIRStatsToJSON.
What calls SupermodelIRToJSON()?
SupermodelIRToJSON() is called by 1 function(s): SupermodelIRAsyncToJSON.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free