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

CodeGraphRelationshipToJSON() — typescript-sdk Function Reference

Architecture documentation for the CodeGraphRelationshipToJSON() function in CodeGraphRelationship.ts from the typescript-sdk codebase.

Entity Profile

Dependency Diagram

graph TD
  4fbc54b1_a31c_9266_80ea_4a2d1aef1380["CodeGraphRelationshipToJSON()"]
  109a46b6_2452_c13f_dc0b_2a268faf72b6["CodeGraphRelationship.ts"]
  4fbc54b1_a31c_9266_80ea_4a2d1aef1380 -->|defined in| 109a46b6_2452_c13f_dc0b_2a268faf72b6
  style 4fbc54b1_a31c_9266_80ea_4a2d1aef1380 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/models/CodeGraphRelationship.ts lines 83–95

export function CodeGraphRelationshipToJSON(value?: CodeGraphRelationship | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'id': value['id'],
        'type': value['type'],
        'startNode': value['startNode'],
        'endNode': value['endNode'],
        'properties': value['properties'],
    };
}

Domain

Subdomains

Frequently Asked Questions

What does CodeGraphRelationshipToJSON() do?
CodeGraphRelationshipToJSON() is a function in the typescript-sdk codebase, defined in src/models/CodeGraphRelationship.ts.
Where is CodeGraphRelationshipToJSON() defined?
CodeGraphRelationshipToJSON() is defined in src/models/CodeGraphRelationship.ts at line 83.

Analyze Your Own Codebase

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

Try Supermodel Free