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

CodeGraphEnvelopeToJSON() — typescript-sdk Function Reference

Architecture documentation for the CodeGraphEnvelopeToJSON() function in CodeGraphEnvelope.ts from the typescript-sdk codebase.

Function typescript CodeGraph IR calls 3 called by 1

Entity Profile

Dependency Diagram

graph TD
  c60bd379_8e46_11ff_25d1_df966fc1785a["CodeGraphEnvelopeToJSON()"]
  f036a4cc_da40_f015_3b8a_3f6d8e0198c7["CodeGraphEnvelope.ts"]
  c60bd379_8e46_11ff_25d1_df966fc1785a -->|defined in| f036a4cc_da40_f015_3b8a_3f6d8e0198c7
  1cbcf78d_3a26_79ea_036e_e4e8c6de1aa7["CodeGraphEnvelopeAsyncToJSON()"]
  1cbcf78d_3a26_79ea_036e_e4e8c6de1aa7 -->|calls| c60bd379_8e46_11ff_25d1_df966fc1785a
  2112db88_c79b_3318_eaaf_906c71a2a284["CodeGraphStatsToJSON()"]
  c60bd379_8e46_11ff_25d1_df966fc1785a -->|calls| 2112db88_c79b_3318_eaaf_906c71a2a284
  5e30a8a7_9031_d402_28fc_d62853df630c["CodeGraphEnvelopeMetadataToJSON()"]
  c60bd379_8e46_11ff_25d1_df966fc1785a -->|calls| 5e30a8a7_9031_d402_28fc_d62853df630c
  c238f56f_8c9e_11d3_5d47_6734003e4b9e["CodeGraphEnvelopeGraphToJSON()"]
  c60bd379_8e46_11ff_25d1_df966fc1785a -->|calls| c238f56f_8c9e_11d3_5d47_6734003e4b9e
  style c60bd379_8e46_11ff_25d1_df966fc1785a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/models/CodeGraphEnvelope.ts lines 99–111

export function CodeGraphEnvelopeToJSON(value?: CodeGraphEnvelope | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'generatedAt': value['generatedAt'] == null ? undefined : ((value['generatedAt']).toISOString()),
        'message': value['message'],
        'stats': CodeGraphStatsToJSON(value['stats']),
        'metadata': CodeGraphEnvelopeMetadataToJSON(value['metadata']),
        'graph': CodeGraphEnvelopeGraphToJSON(value['graph']),
    };
}

Domain

Subdomains

Frequently Asked Questions

What does CodeGraphEnvelopeToJSON() do?
CodeGraphEnvelopeToJSON() is a function in the typescript-sdk codebase, defined in src/models/CodeGraphEnvelope.ts.
Where is CodeGraphEnvelopeToJSON() defined?
CodeGraphEnvelopeToJSON() is defined in src/models/CodeGraphEnvelope.ts at line 99.
What does CodeGraphEnvelopeToJSON() call?
CodeGraphEnvelopeToJSON() calls 3 function(s): CodeGraphEnvelopeGraphToJSON, CodeGraphEnvelopeMetadataToJSON, CodeGraphStatsToJSON.
What calls CodeGraphEnvelopeToJSON()?
CodeGraphEnvelopeToJSON() is called by 1 function(s): CodeGraphEnvelopeAsyncToJSON.

Analyze Your Own Codebase

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

Try Supermodel Free