Open brianramirez opened 6 years ago
@brianramirez Have you tried @objc dynamic var templateImage: TemplateImage? as it doesn't look to be a collection in the JSON payload.
I may be having a similar issue but need to diagnose further as the Realm model has been created but doesn't include any of the headers when looking via realm studio. Which is a bit strange.. so if you have found anything else about this it will be helpful to know.
seeing this for attributes that are Protocols instead of explicit class / struct types.
Did anyone find a solution for this?
I have an issue with the latest release of AlamofireObjectMapper. I have an API that returns an array of JSON data and each item has 3 nested dictionaries.
I am using the ObjectMapper+Realm extension as well to map the JSON to be stored inside a realm database.
The JSON is correctly parsed, however the nested dictionaries are completely skipped despite being returned from the API correctly.
What might I be doing wrong?
This is what my Alamofire request look like:
My JSON is structured like this:
My Model looks like this:
I have even tried adding the
<- map["TemplateImage", nested: true]
to the model mapping to no avail.