//
//  KKActivityPackageModel.m
//  Open
//
//  Created by 雷俊博 on 2020/9/3.
//  Copyright © 2020 黄江涛 . All rights reserved.
//

#import "KKActivityPackageModel.h"

@implementation KKActivityPackageModel
-(void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:self.activeType forKey:@"activeType"];
    [aCoder encodeObject:self.activeMoney forKey:@"activeMoney"];
    [aCoder encodeObject:self.eggNum forKey:@"eggNum"];
    [aCoder encodeObject:self.oilnum forKey:@"oilnum"];
    [aCoder encodeObject:self.activeTime forKey:@"activeTime"];
    [aCoder encodeObject:self.activeDes forKey:@"activeDes"];
    [aCoder encodeObject:self.activeImagePath forKey:@"activeImagePath"];
    [aCoder encodeObject:self.activeTypeDes forKey:@"activeTypeDes"];
}
-(instancetype)initWithCoder:(NSCoder *)aDecoder{
    if (self = [super init]) {
        _activeType = [aDecoder decodeObjectForKey:@"activeType"];
        _activeMoney = [aDecoder decodeObjectForKey:@"activeMoney"];
        _eggNum = [aDecoder decodeObjectForKey:@"eggNum"];
        _oilnum = [aDecoder decodeObjectForKey:@"oilnum"];
        _activeTime = [aDecoder decodeObjectForKey:@"activeTime"];
        _activeDes = [aDecoder decodeObjectForKey:@"activeDes"];
        _activeImagePath = [aDecoder decodeObjectForKey:@"activeImagePath"];
        _activeTypeDes = [aDecoder decodeObjectForKey:@"activeTypeDes"];
    }
    return self;
}


@end
