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

SupermodelIRFromJSONTyped() — typescript-sdk Function Reference

Architecture documentation for the SupermodelIRFromJSONTyped() function in SupermodelIR.ts from the typescript-sdk codebase.

Entity Profile

Dependency Diagram

graph TD
  1a64b257_015e_b7a7_e190_2ec58a528afa["SupermodelIRFromJSONTyped()"]
  c54cd082_4dfa_3bb1_24f2_2f520cf1cdbc["SupermodelIRFromJSON()"]
  c54cd082_4dfa_3bb1_24f2_2f520cf1cdbc -->|calls| 1a64b257_015e_b7a7_e190_2ec58a528afa
  096cd5c9_133b_6391_1dbf_dc00876c48c2["SupermodelIRStatsFromJSON()"]
  1a64b257_015e_b7a7_e190_2ec58a528afa -->|calls| 096cd5c9_133b_6391_1dbf_dc00876c48c2
  ab3b11bf_f151_b334_ff05_9c3276e464a4["CodeGraphEnvelopeMetadataFromJSON()"]
  1a64b257_015e_b7a7_e190_2ec58a528afa -->|calls| ab3b11bf_f151_b334_ff05_9c3276e464a4
  011ca596_e9bc_5d4f_dc34_73520aeb004a["SupermodelIRGraphFromJSON()"]
  1a64b257_015e_b7a7_e190_2ec58a528afa -->|calls| 011ca596_e9bc_5d4f_dc34_73520aeb004a
  style 1a64b257_015e_b7a7_e190_2ec58a528afa fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/models/SupermodelIR.ts lines 134–151

export function SupermodelIRFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupermodelIR {
    if (json == null) {
        return json;
    }
    return {
        
        'repo': json['repo'],
        'version': json['version'],
        'schemaVersion': json['schemaVersion'],
        'generatedAt': (new Date(json['generatedAt'])),
        'summary': json['summary'] == null ? undefined : json['summary'],
        'stats': SupermodelIRStatsFromJSON(json['stats']),
        'metadata': CodeGraphEnvelopeMetadataFromJSON(json['metadata']),
        'domains': ((json['domains'] as Array<any>).map(DomainSummaryFromJSON)),
        'graph': SupermodelIRGraphFromJSON(json['graph']),
        'artifacts': json['artifacts'] == null ? undefined : ((json['artifacts'] as Array<any>).map(SupermodelArtifactFromJSON)),
    };
}

Domain

Subdomains

Frequently Asked Questions

What does SupermodelIRFromJSONTyped() do?
SupermodelIRFromJSONTyped() is a function in the typescript-sdk codebase.
What does SupermodelIRFromJSONTyped() call?
SupermodelIRFromJSONTyped() calls 3 function(s): CodeGraphEnvelopeMetadataFromJSON, SupermodelIRGraphFromJSON, SupermodelIRStatsFromJSON.
What calls SupermodelIRFromJSONTyped()?
SupermodelIRFromJSONTyped() is called by 1 function(s): SupermodelIRFromJSON.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free