//
//  LuckDrawResultModel.m
//  Lighting
//
//  Created by 曹云霄 on 2016/11/5.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#import "LuckDrawResultModel.h"

@implementation LuckDrawResultModel


+(BOOL)propertyIsOptional:(NSString *)propertyName
{
    return YES;
}

+ (JSONKeyMapper *)keyMapper
{
    return [[JSONKeyMapper alloc]initWithDictionary:@{@"description":@"descriptionString"}];
}

+ (LuckDrawResultModel *)initializeWith:(RsAwardDraw *)rsAwardDrawModel
{
    LuckDrawResultModel *model = [[LuckDrawResultModel alloc]init];
    model.lotteryId = rsAwardDrawModel.draw.lotteryId;
    model.type = rsAwardDrawModel.award.type;
    model.number = [rsAwardDrawModel.award.number stringValue];
    model.descriptionString = rsAwardDrawModel.award.fdescription;
    model.drawId = rsAwardDrawModel.draw.fid;
    return model;
}

@end
