//
//  GMShareBaseObject.m
//  GMShareSDK
//
//  Created by Q14 on 2019/12/24.
//

#import "GMShareBaseObject.h"

@implementation GMShareBaseObject

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

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

@end
