import 'package:comwell_key_app/utils/json.dart';
import 'package:json_annotation/json_annotation.dart';
part '../../.generated/hotel_information/models/addon_upgrade.g.dart';
@JsonSerializable()
class AddonUpgrade {
final String id;
final String name;
@JsonKey(defaultValue: [null])
final List<String?> images;
@JsonKey(defaultValue: "")
final String description;
final bool isService;
final bool onlyAvailableBeforeCheckin;
final bool isPopular;
AddonUpgrade({
required this.id,
required this.name,
required this.images,
required this.description,
required this.isService,
required this.onlyAvailableBeforeCheckin,
required this.isPopular,
});
factory AddonUpgrade.fromJson(Json json) => _$AddonUpgradeFromJson(json);
Json toJson() => _$AddonUpgradeToJson(this);
}