Skip to content

Serialize non camelcased properties? #61

Open
@stobias123

Description

@stobias123

I have the below interface and jsonapi response snippet.

I need to serialize the property as shown into the camelcased property in the interface.

Is there some field in schema that I can set to define the camelcased attribute? Do I need to use mutations? Any pointers would be helpful. Thanks!

export interface Plan {
  logReadURL: string;
}

// This json response
{
  ....
  "log-read-url": "foooooo"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions