//
//  WMModel.m
//  Gengmei
//
//  Created by Thierry on 1/9/15.
//  Copyright (c) 2015 Wanmeichuangyi. All rights reserved.
//

#import "GMObject.h"

@implementation GMObject

+ (JSONKeyMapper*)keyMapper
{
    /**将类似"order_id": 104的json 解析成 @property (assign, nonatomic) int orderId;
       即使修改为驼峰命名法
     */
    return [JSONKeyMapper mapperFromUnderscoreCaseToCamelCase];
}

//所有的属性都是可选的，order_id即使为空，不会引起崩溃
+ (BOOL)propertyIsOptional:(NSString*)propertyName
{
    return YES;
}

@end
