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

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
  70bf7114_9140_adb0_dcfb_e8e977109f37["SupermodelIRToJSON()"]
  26816e7d_afb4_9320_d81e_9399214400b3["SupermodelIRAsyncToJSON()"]
  26816e7d_afb4_9320_d81e_9399214400b3 -->|calls| 70bf7114_9140_adb0_dcfb_e8e977109f37
  f898440e_3d84_a1fd_23cb_3323fcc9b8cb["SupermodelIRStatsToJSON()"]
  70bf7114_9140_adb0_dcfb_e8e977109f37 -->|calls| f898440e_3d84_a1fd_23cb_3323fcc9b8cb
  3cde4bc3_c310_187f_685b_2facc3baa690["CodeGraphEnvelopeMetadataToJSON()"]
  70bf7114_9140_adb0_dcfb_e8e977109f37 -->|calls| 3cde4bc3_c310_187f_685b_2facc3baa690
  619e6ecf_5c3f_8ea5_2448_b4eef549b2b1["SupermodelIRGraphToJSON()"]
  70bf7114_9140_adb0_dcfb_e8e977109f37 -->|calls| 619e6ecf_5c3f_8ea5_2448_b4eef549b2b1
  style 70bf7114_9140_adb0_dcfb_e8e977109f37 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

Frequently Asked Questions

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