Home / Function/ SupermodelIRGraphToJSON() — typescript-sdk Function Reference

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
  619e6ecf_5c3f_8ea5_2448_b4eef549b2b1["SupermodelIRGraphToJSON()"]
  70bf7114_9140_adb0_dcfb_e8e977109f37["SupermodelIRToJSON()"]
  70bf7114_9140_adb0_dcfb_e8e977109f37 -->|calls| 619e6ecf_5c3f_8ea5_2448_b4eef549b2b1
  style 619e6ecf_5c3f_8ea5_2448_b4eef549b2b1 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

Frequently Asked Questions

What does SupermodelIRGraphToJSON() do?
SupermodelIRGraphToJSON() is a function in the typescript-sdk codebase.
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