Comments (2)
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?
from moya-modelmapper.
I think we can close this one. If the problem persists still, please open a new issue.
from moya-modelmapper.
Related Issues (20)
- Damnit, mistake issue.
- Rx extensions broken? HOT 3
- macOS, etc. support HOT 1
- Swift 4 support? HOT 10
- Xcode 9 & Swift 3.2 problem HOT 4
- Map header of response HOT 2
- Project won't build when using Carthage HOT 7
- Handling of null values of respones? HOT 2
- Carthage : The file “Info.plist” couldn’t be opened because there is no such file. HOT 3
- No ability to inject own scheduler HOT 6
- Root Array HOT 2
- Value of type [T(rawValue] has no member compactMap HOT 2
- Map Dictionary HOT 8
- Skipping unsuccessful mappings HOT 3
- How do you convert a mappable object to json? HOT 1
- "Extraneous argument label 'to:' in call" on "map(to:"
- Is this swift 4.2 ready? HOT 1
- Can't archive with Xcode 11 HOT 3
- Swift 5 support HOT 2
- Upgrade to Moya 15, RxSwift 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moya-modelmapper.