Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serialize non camelcased properties? #61

Open
stobias123 opened this issue Jul 3, 2022 · 0 comments
Open

Serialize non camelcased properties? #61

stobias123 opened this issue Jul 3, 2022 · 0 comments

Comments

@stobias123
Copy link

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"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant