Lets say I have a JSON object like this:
{
success: false,
error: {code: 1, message: "Something was wrong!"},
data: nil
}
And I wan't to map object like this:
@interface Response : NSObject
@property (assign, nonatomic) BOOL isSuccess;
@property (strong, nonatomic) id data;
@property (strong, nonatomic) NSError *error;
@end
I can map error with KZCall or by custom boxing. But this methods unable to specify any errors during certain class instantiation or mapping. Is there any way to fix it with current library implementation?
Lets say I have a JSON object like this:
And I wan't to map object like this:
I can map error with KZCall or by custom boxing. But this methods unable to specify any errors during certain class instantiation or mapping. Is there any way to fix it with current library implementation?