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

ModelErrorFromJSONTyped() — typescript-sdk Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  bdc14272_af86_6981_24b3_1cdba28ce151["ModelErrorFromJSONTyped()"]
  caeb26d6_13ae_b344_bfa4_9dfde784482d["ModelError.ts"]
  bdc14272_af86_6981_24b3_1cdba28ce151 -->|defined in| caeb26d6_13ae_b344_bfa4_9dfde784482d
  890aa48d_9a34_2c6f_d2fb_6eb6e95e4f5d["ModelErrorFromJSON()"]
  890aa48d_9a34_2c6f_d2fb_6eb6e95e4f5d -->|calls| bdc14272_af86_6981_24b3_1cdba28ce151
  style bdc14272_af86_6981_24b3_1cdba28ce151 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/models/ModelError.ts lines 82–95

export function ModelErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelError {
    if (json == null) {
        return json;
    }
    return {
        
        'status': json['status'],
        'code': json['code'],
        'message': json['message'],
        'timestamp': (new Date(json['timestamp'])),
        'requestId': json['requestId'] == null ? undefined : json['requestId'],
        'details': json['details'] == null ? undefined : ((json['details'] as Array<any>).map(ErrorDetailsInnerFromJSON)),
    };
}

Domain

Subdomains

Frequently Asked Questions

What does ModelErrorFromJSONTyped() do?
ModelErrorFromJSONTyped() is a function in the typescript-sdk codebase, defined in src/models/ModelError.ts.
Where is ModelErrorFromJSONTyped() defined?
ModelErrorFromJSONTyped() is defined in src/models/ModelError.ts at line 82.
What calls ModelErrorFromJSONTyped()?
ModelErrorFromJSONTyped() is called by 1 function(s): ModelErrorFromJSON.

Analyze Your Own Codebase

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

Try Supermodel Free