Add support for mapping nested values
dominik-hadl opened this issue · 2 comments
dominik-hadl commented
This might be useful in cases where we don't need to parse a whole nested object and just care about one value.
For example:
JSON
{
"name": "Your name",
"times": {
"createdAt": "some time",
"updatedAt": "some time",
"deletedAt": "some time"
}
}
Model
struct User {
var name = ""
var createdAt = Date() // <-times/createdAt
}
jakobmygind commented
I have implemented this. Needs review.
dominik-hadl commented
Implemented in #156.