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

ModelErrorToJSON() — typescript-sdk Function Reference

Architecture documentation for the ModelErrorToJSON() function in ModelError.ts from the typescript-sdk codebase.

Entity Profile

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

Analyze Your Own Codebase

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

Try Supermodel Free