Browse files

Add generics attribute for collection. (#600)

* Add generics attribute for collection.

* Seperate generics info
  • Loading branch information...
flexih authored and billinghamj committed Sep 29, 2017
1 parent 364f57b commit 9ecd4f718d61bb13b7d301aeaa6c50d3462404a2
Showing with 9 additions and 0 deletions.
  1. +9 −0
@@ -155,6 +155,15 @@ Note: the angle brackets after `NSArray` contain a protocol. This is not the
same as the Objective-C generics system. They are not mutually exclusive, but
for JSONModel to work, the protocol must be in place.
Also property can have generics info for compiler
@interface OrderModel : JSONModel
@property (nonatomic) NSInteger orderId;
@property (nonatomic) float totalPrice;
@property (nonatomic) NSArray<ProductModel *> <ProductModel> *products;
### Nested key mapping

0 comments on commit 9ecd4f7

Please sign in to comment.