sunshinejr / Moya-ModelMapper

ModelMapper bindings for Moya.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

can we map arrays within mappables?

rlam3 opened this issue · comments

commented

can we map arrays within mappables?

meaning there is array inside another mappable? thanks!

You can map an array like this:

let foo: [String] = try map.from("allUserIds")

ModelMapper supports nested mappables and nested keys.

If those do not help, perhaps you could provide some sample JSON and the object you are trying to map to?

commented

I think we can close this one. If the problem persists still, please open a new issue.