@@ -31,6 +31,7 @@ - (id)initWithJsonDict:(NSDictionary *)jsonDict {
3131 self.costType = [jsonDict objectForKey: @" cost_type" ];
3232 self.costAmount = [jsonDict objectForKey: @" cost_amount" ];
3333 self.costCurrency = [jsonDict objectForKey: @" cost_currency" ];
34+ self.jsonResponse = jsonDict;
3435
3536 return self;
3637}
@@ -106,6 +107,9 @@ - (NSDictionary *)dictionary {
106107 if (self.costCurrency != nil ) {
107108 [responseDataDic setObject: self .costCurrency forKey: @" costCurrency" ];
108109 }
110+ if (self.jsonResponse != nil ) {
111+ [responseDataDic setObject: self .jsonResponse forKey: @" jsonResponse" ];
112+ }
109113
110114 return responseDataDic;
111115}
@@ -151,6 +155,7 @@ - (id)copyWithZone:(NSZone *)zone {
151155 copy.costType = [self .costType copyWithZone: zone];
152156 copy.costAmount = [self .costAmount copyWithZone: zone];
153157 copy.costCurrency = [self .costCurrency copyWithZone: zone];
158+ copy.jsonResponse = [self .jsonResponse copyWithZone: zone];
154159 }
155160
156161 return copy;
@@ -175,6 +180,7 @@ - (id)initWithCoder:(NSCoder *)decoder {
175180 self.costType = [decoder decodeObjectForKey: @" costType" ];
176181 self.costAmount = [decoder decodeObjectForKey: @" costAmount" ];
177182 self.costCurrency = [decoder decodeObjectForKey: @" costCurrency" ];
183+ self.jsonResponse = [decoder decodeObjectForKey: @" jsonResponse" ];
178184
179185 return self;
180186}
@@ -190,6 +196,7 @@ - (void)encodeWithCoder:(NSCoder *)encoder {
190196 [encoder encodeObject: self .costType forKey: @" costType" ];
191197 [encoder encodeObject: self .costAmount forKey: @" costAmount" ];
192198 [encoder encodeObject: self .costCurrency forKey: @" costCurrency" ];
199+ [encoder encodeObject: self .jsonResponse forKey: @" jsonResponse" ];
193200}
194201
195202@end
0 commit comments