ModelErrorToJSON() — typescript-sdk Function Reference
Architecture documentation for the ModelErrorToJSON() function in ModelError.ts from the typescript-sdk codebase.
Entity Profile
Dependency Diagram
graph TD 723ad688_04c3_d65c_a8c6_41b301e8ec8d["ModelErrorToJSON()"] caeb26d6_13ae_b344_bfa4_9dfde784482d["ModelError.ts"] 723ad688_04c3_d65c_a8c6_41b301e8ec8d -->|defined in| caeb26d6_13ae_b344_bfa4_9dfde784482d style 723ad688_04c3_d65c_a8c6_41b301e8ec8d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/models/ModelError.ts lines 97–110
export function ModelErrorToJSON(value?: ModelError | null): any {
if (value == null) {
return value;
}
return {
'status': value['status'],
'code': value['code'],
'message': value['message'],
'timestamp': ((value['timestamp']).toISOString()),
'requestId': value['requestId'],
'details': value['details'] == null ? undefined : ((value['details'] as Array<any>).map(ErrorDetailsInnerToJSON)),
};
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does ModelErrorToJSON() do?
ModelErrorToJSON() is a function in the typescript-sdk codebase, defined in src/models/ModelError.ts.
Where is ModelErrorToJSON() defined?
ModelErrorToJSON() is defined in src/models/ModelError.ts at line 97.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free