jsonmodel / jsonmodel

Magical Data Modeling Framework for JSON - allows rapid creation of smart data models. You can use it in your iOS, macOS, watchOS and tvOS apps.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to convert JSONModel class properties to snake_case NSDictionary?

CochiorasBogdan opened this issue · comments

Hello, I am new to this library and after searching through the issues and through the code I did not find any solution to this question. I am using [JSONKeyMapper mapperForSnakeCase] to map dictionary keys to the class properties and was wondering if there is a method where I can convert the class properties back to snake_case dictionary to send the data with the same keys the server sent initially before mapping in snake_case. Thank you!