class PromoCodeModel { PromoCodeModel({ this.archive, this.code, this.id, this.sold, this.soldEndDate, this.soldStartDate, this.timestamp,}); PromoCodeModel.fromJson(dynamic json) { archive = json['archive']; code = json['code']; id = json['id']; sold = json['sold']; soldEndDate = json['soldEndDate']; soldStartDate = json['soldStartDate']; timestamp = json['timestamp']; } bool? archive; String? code; int? id; double? sold; int? soldEndDate; int? soldStartDate; int? timestamp; Map toJson() { final map = {}; map['archive'] = archive; map['code'] = code; map['id'] = id; map['sold'] = sold; map['soldEndDate'] = soldEndDate; map['soldStartDate'] = soldStartDate; map['timestamp'] = timestamp; return map; } }