/* Options: Date: 2024-12-23 11:29:39 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://consumer-api.brovs.com //GlobalNamespace: ConsumerApi //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetAdMessageRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library ConsumerApi; import 'package:servicestack/servicestack.dart'; abstract class ICacheable { int? cacheVersion; } class ImageUrls implements IConvertible { String? preview; String? small; String? medium; String? large; ImageUrls({this.preview,this.small,this.medium,this.large}); ImageUrls.fromJson(Map json) { fromMap(json); } fromMap(Map json) { preview = json['preview']; small = json['small']; medium = json['medium']; large = json['large']; return this; } Map toJson() => { 'preview': preview, 'small': small, 'medium': medium, 'large': large }; getTypeName() => "ImageUrls"; TypeContext? context = _ctx; } class OpeningHour implements IConvertible { int? openAtHour; int? openAtMinute; int? closeAtHour; int? closeAtMinute; OpeningHour({this.openAtHour,this.openAtMinute,this.closeAtHour,this.closeAtMinute}); OpeningHour.fromJson(Map json) { fromMap(json); } fromMap(Map json) { openAtHour = json['openAtHour']; openAtMinute = json['openAtMinute']; closeAtHour = json['closeAtHour']; closeAtMinute = json['closeAtMinute']; return this; } Map toJson() => { 'openAtHour': openAtHour, 'openAtMinute': openAtMinute, 'closeAtHour': closeAtHour, 'closeAtMinute': closeAtMinute }; getTypeName() => "OpeningHour"; TypeContext? context = _ctx; } class WeeklyOpeningHours implements IConvertible { OpeningHour? monday; OpeningHour? tuesday; OpeningHour? wednesday; OpeningHour? thursday; OpeningHour? friday; OpeningHour? saturday; OpeningHour? sunday; WeeklyOpeningHours({this.monday,this.tuesday,this.wednesday,this.thursday,this.friday,this.saturday,this.sunday}); WeeklyOpeningHours.fromJson(Map json) { fromMap(json); } fromMap(Map json) { monday = JsonConverters.fromJson(json['monday'],'OpeningHour',context!); tuesday = JsonConverters.fromJson(json['tuesday'],'OpeningHour',context!); wednesday = JsonConverters.fromJson(json['wednesday'],'OpeningHour',context!); thursday = JsonConverters.fromJson(json['thursday'],'OpeningHour',context!); friday = JsonConverters.fromJson(json['friday'],'OpeningHour',context!); saturday = JsonConverters.fromJson(json['saturday'],'OpeningHour',context!); sunday = JsonConverters.fromJson(json['sunday'],'OpeningHour',context!); return this; } Map toJson() => { 'monday': JsonConverters.toJson(monday,'OpeningHour',context!), 'tuesday': JsonConverters.toJson(tuesday,'OpeningHour',context!), 'wednesday': JsonConverters.toJson(wednesday,'OpeningHour',context!), 'thursday': JsonConverters.toJson(thursday,'OpeningHour',context!), 'friday': JsonConverters.toJson(friday,'OpeningHour',context!), 'saturday': JsonConverters.toJson(saturday,'OpeningHour',context!), 'sunday': JsonConverters.toJson(sunday,'OpeningHour',context!) }; getTypeName() => "WeeklyOpeningHours"; TypeContext? context = _ctx; } class OpeningHours implements IConvertible { WeeklyOpeningHours? weekly; OpeningHours({this.weekly}); OpeningHours.fromJson(Map json) { fromMap(json); } fromMap(Map json) { weekly = JsonConverters.fromJson(json['weekly'],'WeeklyOpeningHours',context!); return this; } Map toJson() => { 'weekly': JsonConverters.toJson(weekly,'WeeklyOpeningHours',context!) }; getTypeName() => "OpeningHours"; TypeContext? context = _ctx; } enum PlaceType { Mall, Regular, } enum PriceMainDish { Value, Medium, High, FineDining, } class PriceMainDishDto implements IConvertible { String? title; PriceMainDish? slug; PriceMainDishDto({this.title,this.slug}); PriceMainDishDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { title = json['title']; slug = JsonConverters.fromJson(json['slug'],'PriceMainDish',context!); return this; } Map toJson() => { 'title': title, 'slug': JsonConverters.toJson(slug,'PriceMainDish',context!) }; getTypeName() => "PriceMainDishDto"; TypeContext? context = _ctx; } class TimeZoneDto implements IConvertible { Duration? baseUtcOffset; String? daylightName; String? displayName; String? id; String? standardName; bool? supportsDaylightSavingTime; TimeZoneDto({this.baseUtcOffset,this.daylightName,this.displayName,this.id,this.standardName,this.supportsDaylightSavingTime}); TimeZoneDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { baseUtcOffset = JsonConverters.fromJson(json['baseUtcOffset'],'Duration',context!); daylightName = json['daylightName']; displayName = json['displayName']; id = json['id']; standardName = json['standardName']; supportsDaylightSavingTime = json['supportsDaylightSavingTime']; return this; } Map toJson() => { 'baseUtcOffset': JsonConverters.toJson(baseUtcOffset,'Duration',context!), 'daylightName': daylightName, 'displayName': displayName, 'id': id, 'standardName': standardName, 'supportsDaylightSavingTime': supportsDaylightSavingTime }; getTypeName() => "TimeZoneDto"; TypeContext? context = _ctx; } class PlaceContact implements IConvertible { String? phone; String? email; String? website; String? webShop; PlaceContact({this.phone,this.email,this.website,this.webShop}); PlaceContact.fromJson(Map json) { fromMap(json); } fromMap(Map json) { phone = json['phone']; email = json['email']; website = json['website']; webShop = json['webShop']; return this; } Map toJson() => { 'phone': phone, 'email': email, 'website': website, 'webShop': webShop }; getTypeName() => "PlaceContact"; TypeContext? context = _ctx; } class PlaceAddress implements IConvertible { String? street; String? postalCode; String? region; String? countryCode; PlaceAddress({this.street,this.postalCode,this.region,this.countryCode}); PlaceAddress.fromJson(Map json) { fromMap(json); } fromMap(Map json) { street = json['street']; postalCode = json['postalCode']; region = json['region']; countryCode = json['countryCode']; return this; } Map toJson() => { 'street': street, 'postalCode': postalCode, 'region': region, 'countryCode': countryCode }; getTypeName() => "PlaceAddress"; TypeContext? context = _ctx; } class CategoryTreeDto implements IConvertible { String? name; String? slug; String? absoluteSlug; String? imageUrl; String? allImageUrl; String? iconImageUrl; int? position; List? children; CategoryTreeDto({this.name,this.slug,this.absoluteSlug,this.imageUrl,this.allImageUrl,this.iconImageUrl,this.position,this.children}); CategoryTreeDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; slug = json['slug']; absoluteSlug = json['absoluteSlug']; imageUrl = json['imageUrl']; allImageUrl = json['allImageUrl']; iconImageUrl = json['iconImageUrl']; position = json['position']; children = JsonConverters.fromJson(json['children'],'List',context!); return this; } Map toJson() => { 'name': name, 'slug': slug, 'absoluteSlug': absoluteSlug, 'imageUrl': imageUrl, 'allImageUrl': allImageUrl, 'iconImageUrl': iconImageUrl, 'position': position, 'children': JsonConverters.toJson(children,'List',context!) }; getTypeName() => "CategoryTreeDto"; TypeContext? context = _ctx; } class WearPriceProfileDto implements IConvertible { String? slug; String? label; WearPriceProfileDto({this.slug,this.label}); WearPriceProfileDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { slug = json['slug']; label = json['label']; return this; } Map toJson() => { 'slug': slug, 'label': label }; getTypeName() => "WearPriceProfileDto"; TypeContext? context = _ctx; } class BrandDto implements IConvertible { String? name; BrandDto({this.name}); BrandDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; return this; } Map toJson() => { 'name': name }; getTypeName() => "BrandDto"; TypeContext? context = _ctx; } class PlaceCustomBrandDto implements IConvertible { String? name; PlaceCustomBrandDto({this.name}); PlaceCustomBrandDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; return this; } Map toJson() => { 'name': name }; getTypeName() => "PlaceCustomBrandDto"; TypeContext? context = _ctx; } class PlaceSelectedBrandDto implements IConvertible { BrandDto? brand; List? categoryAbsoluteSlugs; PlaceCustomBrandDto? placeCustomBrand; PlaceSelectedBrandDto({this.brand,this.categoryAbsoluteSlugs,this.placeCustomBrand}); PlaceSelectedBrandDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { brand = JsonConverters.fromJson(json['brand'],'BrandDto',context!); categoryAbsoluteSlugs = JsonConverters.fromJson(json['categoryAbsoluteSlugs'],'List',context!); placeCustomBrand = JsonConverters.fromJson(json['placeCustomBrand'],'PlaceCustomBrandDto',context!); return this; } Map toJson() => { 'brand': JsonConverters.toJson(brand,'BrandDto',context!), 'categoryAbsoluteSlugs': JsonConverters.toJson(categoryAbsoluteSlugs,'List',context!), 'placeCustomBrand': JsonConverters.toJson(placeCustomBrand,'PlaceCustomBrandDto',context!) }; getTypeName() => "PlaceSelectedBrandDto"; TypeContext? context = _ctx; } class PlaceBasicDto implements IConvertible { int? id; String? guid; String? overview; String? name; double? longitude; double? latitude; bool? claimed; String? organizationNumber; String? countryCode; OpeningHours? openingHours; bool? wheelchairAccessible; bool? wifi; bool? outdoorSeating; bool? saveFoodAndMoney; PlaceType? placeType; PriceMainDishDto? priceMainDish; TimeZoneDto? timeZoneDto; int? businessId; PlaceContact? contact; PlaceAddress? address; List? categories; ImageUrls? logoUrl; ImageUrls? imageUrl; List? wearPriceProfiles; List? brands; String? floor; PlaceBasicDto({this.id,this.guid,this.overview,this.name,this.longitude,this.latitude,this.claimed,this.organizationNumber,this.countryCode,this.openingHours,this.wheelchairAccessible,this.wifi,this.outdoorSeating,this.saveFoodAndMoney,this.placeType,this.priceMainDish,this.timeZoneDto,this.businessId,this.contact,this.address,this.categories,this.logoUrl,this.imageUrl,this.wearPriceProfiles,this.brands,this.floor}); PlaceBasicDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; guid = json['guid']; overview = json['overview']; name = json['name']; longitude = JsonConverters.toDouble(json['longitude']); latitude = JsonConverters.toDouble(json['latitude']); claimed = json['claimed']; organizationNumber = json['organizationNumber']; countryCode = json['countryCode']; openingHours = JsonConverters.fromJson(json['openingHours'],'OpeningHours',context!); wheelchairAccessible = json['wheelchairAccessible']; wifi = json['wifi']; outdoorSeating = json['outdoorSeating']; saveFoodAndMoney = json['saveFoodAndMoney']; placeType = JsonConverters.fromJson(json['placeType'],'PlaceType',context!); priceMainDish = JsonConverters.fromJson(json['priceMainDish'],'PriceMainDishDto',context!); timeZoneDto = JsonConverters.fromJson(json['timeZoneDto'],'TimeZoneDto',context!); businessId = json['businessId']; contact = JsonConverters.fromJson(json['contact'],'PlaceContact',context!); address = JsonConverters.fromJson(json['address'],'PlaceAddress',context!); categories = JsonConverters.fromJson(json['categories'],'List',context!); logoUrl = JsonConverters.fromJson(json['logoUrl'],'ImageUrls',context!); imageUrl = JsonConverters.fromJson(json['imageUrl'],'ImageUrls',context!); wearPriceProfiles = JsonConverters.fromJson(json['wearPriceProfiles'],'List',context!); brands = JsonConverters.fromJson(json['brands'],'List',context!); floor = json['floor']; return this; } Map toJson() => { 'id': id, 'guid': guid, 'overview': overview, 'name': name, 'longitude': longitude, 'latitude': latitude, 'claimed': claimed, 'organizationNumber': organizationNumber, 'countryCode': countryCode, 'openingHours': JsonConverters.toJson(openingHours,'OpeningHours',context!), 'wheelchairAccessible': wheelchairAccessible, 'wifi': wifi, 'outdoorSeating': outdoorSeating, 'saveFoodAndMoney': saveFoodAndMoney, 'placeType': JsonConverters.toJson(placeType,'PlaceType',context!), 'priceMainDish': JsonConverters.toJson(priceMainDish,'PriceMainDishDto',context!), 'timeZoneDto': JsonConverters.toJson(timeZoneDto,'TimeZoneDto',context!), 'businessId': businessId, 'contact': JsonConverters.toJson(contact,'PlaceContact',context!), 'address': JsonConverters.toJson(address,'PlaceAddress',context!), 'categories': JsonConverters.toJson(categories,'List',context!), 'logoUrl': JsonConverters.toJson(logoUrl,'ImageUrls',context!), 'imageUrl': JsonConverters.toJson(imageUrl,'ImageUrls',context!), 'wearPriceProfiles': JsonConverters.toJson(wearPriceProfiles,'List',context!), 'brands': JsonConverters.toJson(brands,'List',context!), 'floor': floor }; getTypeName() => "PlaceBasicDto"; TypeContext? context = _ctx; } class AdMessageDetailsBase implements IConvertible { String? description; List? moreInformation; AdMessageDetailsBase({this.description,this.moreInformation}); AdMessageDetailsBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { description = json['description']; moreInformation = JsonConverters.fromJson(json['moreInformation'],'List',context!); return this; } Map toJson() => { 'description': description, 'moreInformation': JsonConverters.toJson(moreInformation,'List',context!) }; getTypeName() => "AdMessageDetailsBase"; TypeContext? context = _ctx; } class AdMessageDetailsPercentageDiscountOnAllMerchandise extends AdMessageDetailsBase implements IConvertible { double? value; AdMessageDetailsPercentageDiscountOnAllMerchandise({this.value}); AdMessageDetailsPercentageDiscountOnAllMerchandise.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); value = JsonConverters.toDouble(json['value']); return this; } Map toJson() => super.toJson()..addAll({ 'value': value }); getTypeName() => "AdMessageDetailsPercentageDiscountOnAllMerchandise"; TypeContext? context = _ctx; } class AdMessageDetailsPercentageDiscountRangeOnAllMerchandise extends AdMessageDetailsBase implements IConvertible { double? start; double? stop; AdMessageDetailsPercentageDiscountRangeOnAllMerchandise({this.start,this.stop}); AdMessageDetailsPercentageDiscountRangeOnAllMerchandise.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); start = JsonConverters.toDouble(json['start']); stop = JsonConverters.toDouble(json['stop']); return this; } Map toJson() => super.toJson()..addAll({ 'start': start, 'stop': stop }); getTypeName() => "AdMessageDetailsPercentageDiscountRangeOnAllMerchandise"; TypeContext? context = _ctx; } class AdMessageDetailsPercentageDiscountOnSelectedMerchandise extends AdMessageDetailsBase implements IConvertible { double? value; AdMessageDetailsPercentageDiscountOnSelectedMerchandise({this.value}); AdMessageDetailsPercentageDiscountOnSelectedMerchandise.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); value = JsonConverters.toDouble(json['value']); return this; } Map toJson() => super.toJson()..addAll({ 'value': value }); getTypeName() => "AdMessageDetailsPercentageDiscountOnSelectedMerchandise"; TypeContext? context = _ctx; } class AdMessageDetailsAbsoluteDiscountOnSelectedMerchandise extends AdMessageDetailsBase implements IConvertible { double? value; AdMessageDetailsAbsoluteDiscountOnSelectedMerchandise({this.value}); AdMessageDetailsAbsoluteDiscountOnSelectedMerchandise.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); value = JsonConverters.toDouble(json['value']); return this; } Map toJson() => super.toJson()..addAll({ 'value': value }); getTypeName() => "AdMessageDetailsAbsoluteDiscountOnSelectedMerchandise"; TypeContext? context = _ctx; } class AdMessageDetailsAbsoluteDiscountRangeOnAllMerchandise extends AdMessageDetailsBase implements IConvertible { double? start; double? stop; AdMessageDetailsAbsoluteDiscountRangeOnAllMerchandise({this.start,this.stop}); AdMessageDetailsAbsoluteDiscountRangeOnAllMerchandise.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); start = JsonConverters.toDouble(json['start']); stop = JsonConverters.toDouble(json['stop']); return this; } Map toJson() => super.toJson()..addAll({ 'start': start, 'stop': stop }); getTypeName() => "AdMessageDetailsAbsoluteDiscountRangeOnAllMerchandise"; TypeContext? context = _ctx; } class AdMessageDetailsTotalAmountOverXgivesYdiscount extends AdMessageDetailsBase implements IConvertible { double? ifTotalAmountMoreThanX; double? thenYouGetDiscountPercentageY; AdMessageDetailsTotalAmountOverXgivesYdiscount({this.ifTotalAmountMoreThanX,this.thenYouGetDiscountPercentageY}); AdMessageDetailsTotalAmountOverXgivesYdiscount.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ifTotalAmountMoreThanX = JsonConverters.toDouble(json['ifTotalAmountMoreThanX']); thenYouGetDiscountPercentageY = JsonConverters.toDouble(json['thenYouGetDiscountPercentageY']); return this; } Map toJson() => super.toJson()..addAll({ 'ifTotalAmountMoreThanX': ifTotalAmountMoreThanX, 'thenYouGetDiscountPercentageY': thenYouGetDiscountPercentageY }); getTypeName() => "AdMessageDetailsTotalAmountOverXgivesYdiscount"; TypeContext? context = _ctx; } class AdMessageDetailsXforYdiscount extends AdMessageDetailsBase implements IConvertible { int? ifYouBuyX; int? thenYouGetY; AdMessageDetailsXforYdiscount({this.ifYouBuyX,this.thenYouGetY}); AdMessageDetailsXforYdiscount.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ifYouBuyX = json['ifYouBuyX']; thenYouGetY = json['thenYouGetY']; return this; } Map toJson() => super.toJson()..addAll({ 'ifYouBuyX': ifYouBuyX, 'thenYouGetY': thenYouGetY }); getTypeName() => "AdMessageDetailsXforYdiscount"; TypeContext? context = _ctx; } class AdMessageDetailsNewArrivals extends AdMessageDetailsBase implements IConvertible { AdMessageDetailsNewArrivals(); AdMessageDetailsNewArrivals.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "AdMessageDetailsNewArrivals"; TypeContext? context = _ctx; } class AdMessageDetailsFreetext extends AdMessageDetailsBase implements IConvertible { String? title; AdMessageDetailsFreetext({this.title}); AdMessageDetailsFreetext.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); title = json['title']; return this; } Map toJson() => super.toJson()..addAll({ 'title': title }); getTypeName() => "AdMessageDetailsFreetext"; TypeContext? context = _ctx; } class AdMessageDetailsTodaysBreakFastOffer extends AdMessageDetailsBase implements IConvertible { double? value; AdMessageDetailsTodaysBreakFastOffer({this.value}); AdMessageDetailsTodaysBreakFastOffer.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); value = JsonConverters.toDouble(json['value']); return this; } Map toJson() => super.toJson()..addAll({ 'value': value }); getTypeName() => "AdMessageDetailsTodaysBreakFastOffer"; TypeContext? context = _ctx; } class AdMessageDetailsTodaysLunchOffer extends AdMessageDetailsBase implements IConvertible { double? value; AdMessageDetailsTodaysLunchOffer({this.value}); AdMessageDetailsTodaysLunchOffer.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); value = JsonConverters.toDouble(json['value']); return this; } Map toJson() => super.toJson()..addAll({ 'value': value }); getTypeName() => "AdMessageDetailsTodaysLunchOffer"; TypeContext? context = _ctx; } class AdMessageDetailsTodaysDinnerOffer extends AdMessageDetailsBase implements IConvertible { double? value; AdMessageDetailsTodaysDinnerOffer({this.value}); AdMessageDetailsTodaysDinnerOffer.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); value = JsonConverters.toDouble(json['value']); return this; } Map toJson() => super.toJson()..addAll({ 'value': value }); getTypeName() => "AdMessageDetailsTodaysDinnerOffer"; TypeContext? context = _ctx; } class AdMessageDetailsSaveFoodAndMoney extends AdMessageDetailsBase implements IConvertible { double? value; AdMessageDetailsSaveFoodAndMoney({this.value}); AdMessageDetailsSaveFoodAndMoney.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); value = JsonConverters.toDouble(json['value']); return this; } Map toJson() => super.toJson()..addAll({ 'value': value }); getTypeName() => "AdMessageDetailsSaveFoodAndMoney"; TypeContext? context = _ctx; } class AdMessageDetailsPercentageOffYourFoodBill extends AdMessageDetailsBase implements IConvertible { double? percentage; AdMessageDetailsPercentageOffYourFoodBill({this.percentage}); AdMessageDetailsPercentageOffYourFoodBill.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); percentage = JsonConverters.toDouble(json['percentage']); return this; } Map toJson() => super.toJson()..addAll({ 'percentage': percentage }); getTypeName() => "AdMessageDetailsPercentageOffYourFoodBill"; TypeContext? context = _ctx; } class AdMessageDetailsHappyHour extends AdMessageDetailsBase implements IConvertible { AdMessageDetailsHappyHour(); AdMessageDetailsHappyHour.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "AdMessageDetailsHappyHour"; TypeContext? context = _ctx; } class AdMessageDetailsSomeFreeTablesLeftToday extends AdMessageDetailsBase implements IConvertible { AdMessageDetailsSomeFreeTablesLeftToday(); AdMessageDetailsSomeFreeTablesLeftToday.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "AdMessageDetailsSomeFreeTablesLeftToday"; TypeContext? context = _ctx; } class AdMessageDetailsTwoDishesForThePriceOfOne extends AdMessageDetailsBase implements IConvertible { AdMessageDetailsTwoDishesForThePriceOfOne(); AdMessageDetailsTwoDishesForThePriceOfOne.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "AdMessageDetailsTwoDishesForThePriceOfOne"; TypeContext? context = _ctx; } class AdMessageDetailsUnion implements IConvertible { AdMessageDetailsPercentageDiscountOnAllMerchandise? percentageOnAllMerchandise; AdMessageDetailsPercentageDiscountRangeOnAllMerchandise? percentageRangeOnAllMerchandise; AdMessageDetailsPercentageDiscountOnSelectedMerchandise? percentageOnSelectedMerchandise; AdMessageDetailsAbsoluteDiscountOnSelectedMerchandise? absoluteOnSelectedMerchandise; AdMessageDetailsAbsoluteDiscountRangeOnAllMerchandise? absoluteRangeOnAllMerchandise; AdMessageDetailsTotalAmountOverXgivesYdiscount? totalAmountOverXgivesYdiscount; AdMessageDetailsXforYdiscount? xforY; AdMessageDetailsNewArrivals? newArrivals; AdMessageDetailsFreetext? freetext; AdMessageDetailsTodaysBreakFastOffer? todaysBreakFastOffer; AdMessageDetailsTodaysLunchOffer? todaysLunchOffer; AdMessageDetailsTodaysDinnerOffer? todaysDinnerOffer; AdMessageDetailsSaveFoodAndMoney? saveFoodAndMoney; AdMessageDetailsPercentageOffYourFoodBill? percentageOfYourFoodBill; AdMessageDetailsHappyHour? happyHour; AdMessageDetailsSomeFreeTablesLeftToday? someFreeTablesLeftToday; AdMessageDetailsTwoDishesForThePriceOfOne? twoDishesForThePriceOfOne; AdMessageDetailsUnion({this.percentageOnAllMerchandise,this.percentageRangeOnAllMerchandise,this.percentageOnSelectedMerchandise,this.absoluteOnSelectedMerchandise,this.absoluteRangeOnAllMerchandise,this.totalAmountOverXgivesYdiscount,this.xforY,this.newArrivals,this.freetext,this.todaysBreakFastOffer,this.todaysLunchOffer,this.todaysDinnerOffer,this.saveFoodAndMoney,this.percentageOfYourFoodBill,this.happyHour,this.someFreeTablesLeftToday,this.twoDishesForThePriceOfOne}); AdMessageDetailsUnion.fromJson(Map json) { fromMap(json); } fromMap(Map json) { percentageOnAllMerchandise = JsonConverters.fromJson(json['percentageOnAllMerchandise'],'AdMessageDetailsPercentageDiscountOnAllMerchandise',context!); percentageRangeOnAllMerchandise = JsonConverters.fromJson(json['percentageRangeOnAllMerchandise'],'AdMessageDetailsPercentageDiscountRangeOnAllMerchandise',context!); percentageOnSelectedMerchandise = JsonConverters.fromJson(json['percentageOnSelectedMerchandise'],'AdMessageDetailsPercentageDiscountOnSelectedMerchandise',context!); absoluteOnSelectedMerchandise = JsonConverters.fromJson(json['absoluteOnSelectedMerchandise'],'AdMessageDetailsAbsoluteDiscountOnSelectedMerchandise',context!); absoluteRangeOnAllMerchandise = JsonConverters.fromJson(json['absoluteRangeOnAllMerchandise'],'AdMessageDetailsAbsoluteDiscountRangeOnAllMerchandise',context!); totalAmountOverXgivesYdiscount = JsonConverters.fromJson(json['totalAmountOverXgivesYdiscount'],'AdMessageDetailsTotalAmountOverXgivesYdiscount',context!); xforY = JsonConverters.fromJson(json['xforY'],'AdMessageDetailsXforYdiscount',context!); newArrivals = JsonConverters.fromJson(json['newArrivals'],'AdMessageDetailsNewArrivals',context!); freetext = JsonConverters.fromJson(json['freetext'],'AdMessageDetailsFreetext',context!); todaysBreakFastOffer = JsonConverters.fromJson(json['todaysBreakFastOffer'],'AdMessageDetailsTodaysBreakFastOffer',context!); todaysLunchOffer = JsonConverters.fromJson(json['todaysLunchOffer'],'AdMessageDetailsTodaysLunchOffer',context!); todaysDinnerOffer = JsonConverters.fromJson(json['todaysDinnerOffer'],'AdMessageDetailsTodaysDinnerOffer',context!); saveFoodAndMoney = JsonConverters.fromJson(json['saveFoodAndMoney'],'AdMessageDetailsSaveFoodAndMoney',context!); percentageOfYourFoodBill = JsonConverters.fromJson(json['percentageOfYourFoodBill'],'AdMessageDetailsPercentageOffYourFoodBill',context!); happyHour = JsonConverters.fromJson(json['happyHour'],'AdMessageDetailsHappyHour',context!); someFreeTablesLeftToday = JsonConverters.fromJson(json['someFreeTablesLeftToday'],'AdMessageDetailsSomeFreeTablesLeftToday',context!); twoDishesForThePriceOfOne = JsonConverters.fromJson(json['twoDishesForThePriceOfOne'],'AdMessageDetailsTwoDishesForThePriceOfOne',context!); return this; } Map toJson() => { 'percentageOnAllMerchandise': JsonConverters.toJson(percentageOnAllMerchandise,'AdMessageDetailsPercentageDiscountOnAllMerchandise',context!), 'percentageRangeOnAllMerchandise': JsonConverters.toJson(percentageRangeOnAllMerchandise,'AdMessageDetailsPercentageDiscountRangeOnAllMerchandise',context!), 'percentageOnSelectedMerchandise': JsonConverters.toJson(percentageOnSelectedMerchandise,'AdMessageDetailsPercentageDiscountOnSelectedMerchandise',context!), 'absoluteOnSelectedMerchandise': JsonConverters.toJson(absoluteOnSelectedMerchandise,'AdMessageDetailsAbsoluteDiscountOnSelectedMerchandise',context!), 'absoluteRangeOnAllMerchandise': JsonConverters.toJson(absoluteRangeOnAllMerchandise,'AdMessageDetailsAbsoluteDiscountRangeOnAllMerchandise',context!), 'totalAmountOverXgivesYdiscount': JsonConverters.toJson(totalAmountOverXgivesYdiscount,'AdMessageDetailsTotalAmountOverXgivesYdiscount',context!), 'xforY': JsonConverters.toJson(xforY,'AdMessageDetailsXforYdiscount',context!), 'newArrivals': JsonConverters.toJson(newArrivals,'AdMessageDetailsNewArrivals',context!), 'freetext': JsonConverters.toJson(freetext,'AdMessageDetailsFreetext',context!), 'todaysBreakFastOffer': JsonConverters.toJson(todaysBreakFastOffer,'AdMessageDetailsTodaysBreakFastOffer',context!), 'todaysLunchOffer': JsonConverters.toJson(todaysLunchOffer,'AdMessageDetailsTodaysLunchOffer',context!), 'todaysDinnerOffer': JsonConverters.toJson(todaysDinnerOffer,'AdMessageDetailsTodaysDinnerOffer',context!), 'saveFoodAndMoney': JsonConverters.toJson(saveFoodAndMoney,'AdMessageDetailsSaveFoodAndMoney',context!), 'percentageOfYourFoodBill': JsonConverters.toJson(percentageOfYourFoodBill,'AdMessageDetailsPercentageOffYourFoodBill',context!), 'happyHour': JsonConverters.toJson(happyHour,'AdMessageDetailsHappyHour',context!), 'someFreeTablesLeftToday': JsonConverters.toJson(someFreeTablesLeftToday,'AdMessageDetailsSomeFreeTablesLeftToday',context!), 'twoDishesForThePriceOfOne': JsonConverters.toJson(twoDishesForThePriceOfOne,'AdMessageDetailsTwoDishesForThePriceOfOne',context!) }; getTypeName() => "AdMessageDetailsUnion"; TypeContext? context = _ctx; } class AdMessageDto implements IConvertible { int? id; String? guid; String? title; DateTime? startAt; DateTime? stopAt; DateTime? publishAt; List? imageUrls; PlaceBasicDto? place; AdMessageDetailsUnion? detailsUnion; int? starredCount; AdMessageDto({this.id,this.guid,this.title,this.startAt,this.stopAt,this.publishAt,this.imageUrls,this.place,this.detailsUnion,this.starredCount}); AdMessageDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; guid = json['guid']; title = json['title']; startAt = JsonConverters.fromJson(json['startAt'],'DateTime',context!); stopAt = JsonConverters.fromJson(json['stopAt'],'DateTime',context!); publishAt = JsonConverters.fromJson(json['publishAt'],'DateTime',context!); imageUrls = JsonConverters.fromJson(json['imageUrls'],'List',context!); place = JsonConverters.fromJson(json['place'],'PlaceBasicDto',context!); detailsUnion = JsonConverters.fromJson(json['detailsUnion'],'AdMessageDetailsUnion',context!); starredCount = json['starredCount']; return this; } Map toJson() => { 'id': id, 'guid': guid, 'title': title, 'startAt': JsonConverters.toJson(startAt,'DateTime',context!), 'stopAt': JsonConverters.toJson(stopAt,'DateTime',context!), 'publishAt': JsonConverters.toJson(publishAt,'DateTime',context!), 'imageUrls': JsonConverters.toJson(imageUrls,'List',context!), 'place': JsonConverters.toJson(place,'PlaceBasicDto',context!), 'detailsUnion': JsonConverters.toJson(detailsUnion,'AdMessageDetailsUnion',context!), 'starredCount': starredCount }; getTypeName() => "AdMessageDto"; TypeContext? context = _ctx; } class GetAdMessageResponse implements IConvertible { AdMessageDto? adMessageDto; GetAdMessageResponse({this.adMessageDto}); GetAdMessageResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { adMessageDto = JsonConverters.fromJson(json['adMessageDto'],'AdMessageDto',context!); return this; } Map toJson() => { 'adMessageDto': JsonConverters.toJson(adMessageDto,'AdMessageDto',context!) }; getTypeName() => "GetAdMessageResponse"; TypeContext? context = _ctx; } // @Route("/admessage/{AdMessageGuid}", "GET") class GetAdMessageRequest implements IReturn, IGet, ICacheable, IConvertible { String? adMessageGuid; int? cacheVersion; GetAdMessageRequest({this.adMessageGuid,this.cacheVersion}); GetAdMessageRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { adMessageGuid = json['adMessageGuid']; cacheVersion = json['cacheVersion']; return this; } Map toJson() => { 'adMessageGuid': adMessageGuid, 'cacheVersion': cacheVersion }; createResponse() => GetAdMessageResponse(); getResponseTypeName() => "GetAdMessageResponse"; getTypeName() => "GetAdMessageRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'ConsumerApi', types: { 'ICacheable': TypeInfo(TypeOf.Interface), 'ImageUrls': TypeInfo(TypeOf.Class, create:() => ImageUrls()), 'OpeningHour': TypeInfo(TypeOf.Class, create:() => OpeningHour()), 'WeeklyOpeningHours': TypeInfo(TypeOf.Class, create:() => WeeklyOpeningHours()), 'OpeningHours': TypeInfo(TypeOf.Class, create:() => OpeningHours()), 'PlaceType': TypeInfo(TypeOf.Enum, enumValues:PlaceType.values), 'PriceMainDish': TypeInfo(TypeOf.Enum, enumValues:PriceMainDish.values), 'PriceMainDishDto': TypeInfo(TypeOf.Class, create:() => PriceMainDishDto()), 'TimeZoneDto': TypeInfo(TypeOf.Class, create:() => TimeZoneDto()), 'PlaceContact': TypeInfo(TypeOf.Class, create:() => PlaceContact()), 'PlaceAddress': TypeInfo(TypeOf.Class, create:() => PlaceAddress()), 'CategoryTreeDto': TypeInfo(TypeOf.Class, create:() => CategoryTreeDto()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'WearPriceProfileDto': TypeInfo(TypeOf.Class, create:() => WearPriceProfileDto()), 'BrandDto': TypeInfo(TypeOf.Class, create:() => BrandDto()), 'PlaceCustomBrandDto': TypeInfo(TypeOf.Class, create:() => PlaceCustomBrandDto()), 'PlaceSelectedBrandDto': TypeInfo(TypeOf.Class, create:() => PlaceSelectedBrandDto()), 'PlaceBasicDto': TypeInfo(TypeOf.Class, create:() => PlaceBasicDto()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'AdMessageDetailsBase': TypeInfo(TypeOf.Class, create:() => AdMessageDetailsBase()), 'AdMessageDetailsPercentageDiscountOnAllMerchandise': TypeInfo(TypeOf.Class, create:() => AdMessageDetailsPercentageDiscountOnAllMerchandise()), 'AdMessageDetailsPercentageDiscountRangeOnAllMerchandise': TypeInfo(TypeOf.Class, create:() => AdMessageDetailsPercentageDiscountRangeOnAllMerchandise()), 'AdMessageDetailsPercentageDiscountOnSelectedMerchandise': TypeInfo(TypeOf.Class, create:() => AdMessageDetailsPercentageDiscountOnSelectedMerchandise()), 'AdMessageDetailsAbsoluteDiscountOnSelectedMerchandise': TypeInfo(TypeOf.Class, create:() => AdMessageDetailsAbsoluteDiscountOnSelectedMerchandise()), 'AdMessageDetailsAbsoluteDiscountRangeOnAllMerchandise': TypeInfo(TypeOf.Class, create:() => AdMessageDetailsAbsoluteDiscountRangeOnAllMerchandise()), 'AdMessageDetailsTotalAmountOverXgivesYdiscount': TypeInfo(TypeOf.Class, create:() => AdMessageDetailsTotalAmountOverXgivesYdiscount()), 'AdMessageDetailsXforYdiscount': TypeInfo(TypeOf.Class, create:() => AdMessageDetailsXforYdiscount()), 'AdMessageDetailsNewArrivals': TypeInfo(TypeOf.Class, create:() => AdMessageDetailsNewArrivals()), 'AdMessageDetailsFreetext': TypeInfo(TypeOf.Class, create:() => AdMessageDetailsFreetext()), 'AdMessageDetailsTodaysBreakFastOffer': TypeInfo(TypeOf.Class, create:() => AdMessageDetailsTodaysBreakFastOffer()), 'AdMessageDetailsTodaysLunchOffer': TypeInfo(TypeOf.Class, create:() => AdMessageDetailsTodaysLunchOffer()), 'AdMessageDetailsTodaysDinnerOffer': TypeInfo(TypeOf.Class, create:() => AdMessageDetailsTodaysDinnerOffer()), 'AdMessageDetailsSaveFoodAndMoney': TypeInfo(TypeOf.Class, create:() => AdMessageDetailsSaveFoodAndMoney()), 'AdMessageDetailsPercentageOffYourFoodBill': TypeInfo(TypeOf.Class, create:() => AdMessageDetailsPercentageOffYourFoodBill()), 'AdMessageDetailsHappyHour': TypeInfo(TypeOf.Class, create:() => AdMessageDetailsHappyHour()), 'AdMessageDetailsSomeFreeTablesLeftToday': TypeInfo(TypeOf.Class, create:() => AdMessageDetailsSomeFreeTablesLeftToday()), 'AdMessageDetailsTwoDishesForThePriceOfOne': TypeInfo(TypeOf.Class, create:() => AdMessageDetailsTwoDishesForThePriceOfOne()), 'AdMessageDetailsUnion': TypeInfo(TypeOf.Class, create:() => AdMessageDetailsUnion()), 'AdMessageDto': TypeInfo(TypeOf.Class, create:() => AdMessageDto()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetAdMessageResponse': TypeInfo(TypeOf.Class, create:() => GetAdMessageResponse()), 'GetAdMessageRequest': TypeInfo(TypeOf.Class, create:() => GetAdMessageRequest()), });