swisnl / json-api-client

A PHP package for mapping remote {json:api} resources to Eloquent like models and collections.
MIT License
205 stars 24 forks source link

How do I transform keys from kabab case to camel case #98

Open joegaudet opened 2 years ago

joegaudet commented 2 years ago

In our api the keys for the attributes and relationships are in kabab case

is-new-restaurant, which I would like to use as isNewRestaurant, is there a way to handle this?

joegaudet commented 2 years ago

Base on this, https://jsonapi.org/format/#document-member-names

_ - and space are allowed characters so support for them should be included.