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

#import "PromotionLuckDrawResultModel.h"

@implementation PromotionLuckDrawResultModel


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

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

+ (PromotionLuckDrawResultModel *)initializeWith:(RsAwardDraw *)rsAwardDrawModel
{
    PromotionLuckDrawResultModel *model = [[PromotionLuckDrawResultModel 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
