Closed aleufms closed 7 years ago
The jsonAPIObject have the meta information, but the jsonAPIOjbect.data, meta is always nil.
let jsonAPIObject = try NewAPIClient.jsonAPISerializer.deserializeData(response.data)
if let mappedObject = jsonAPIObject.data?.first as? T{
return Observable.just(mappedObject)
}
I'm using only the deserialize function of the class Serialize (deserializeData). The "meta" on response is not setting the resource's meta parameter. My response is like that:
The attributes is getting mapped (in this case, only slug string) as the id and type, but the meta is always nil. Is there another way to extract/map it?
Thanks