SupermodelIRGraphToJSON() — typescript-sdk Function Reference
Architecture documentation for the SupermodelIRGraphToJSON() function in SupermodelIRGraph.ts from the typescript-sdk codebase.
Entity Profile
Dependency Diagram
graph TD 322cabad_6eb9_dfe1_d348_9568f28ae3c6["SupermodelIRGraphToJSON()"] 16665b9d_716b_53d2_ad0f_8f224211e5bc["SupermodelIRGraph.ts"] 322cabad_6eb9_dfe1_d348_9568f28ae3c6 -->|defined in| 16665b9d_716b_53d2_ad0f_8f224211e5bc 5cb4729f_dd4c_43a0_ffb5_eac90b768885["SupermodelIRToJSON()"] 5cb4729f_dd4c_43a0_ffb5_eac90b768885 -->|calls| 322cabad_6eb9_dfe1_d348_9568f28ae3c6 style 322cabad_6eb9_dfe1_d348_9568f28ae3c6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/models/SupermodelIRGraph.ts lines 73–82
export function SupermodelIRGraphToJSON(value?: SupermodelIRGraph | null): any {
if (value == null) {
return value;
}
return {
'nodes': ((value['nodes'] as Array<any>).map(CodeGraphNodeToJSON)),
'relationships': ((value['relationships'] as Array<any>).map(CodeGraphRelationshipToJSON)),
};
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does SupermodelIRGraphToJSON() do?
SupermodelIRGraphToJSON() is a function in the typescript-sdk codebase, defined in src/models/SupermodelIRGraph.ts.
Where is SupermodelIRGraphToJSON() defined?
SupermodelIRGraphToJSON() is defined in src/models/SupermodelIRGraph.ts at line 73.
What calls SupermodelIRGraphToJSON()?
SupermodelIRGraphToJSON() is called by 1 function(s): SupermodelIRToJSON.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free