/* 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: FindRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library ConsumerApi; import 'package:servicestack/servicestack.dart'; enum Parking { StreetParking, ParkingGarageNearby, } enum PaymentOption { Visa, MasterCard, AmericanExpress, Diners, Vipps, } enum PriceMainDish { Value, Medium, High, FineDining, } enum DayOfWeek { Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, } class OpenAtTimeDto implements IConvertible { DayOfWeek? weekDay; int? hour; int? minute; OpenAtTimeDto({this.weekDay,this.hour,this.minute}); OpenAtTimeDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { weekDay = JsonConverters.fromJson(json['weekDay'],'DayOfWeek',context!); hour = json['hour']; minute = json['minute']; return this; } Map toJson() => { 'weekDay': JsonConverters.toJson(weekDay,'DayOfWeek',context!), 'hour': hour, 'minute': minute }; getTypeName() => "OpenAtTimeDto"; TypeContext? context = _ctx; } class QueryFilterDto implements IConvertible { String? term; String? placeGuid; String? adMessageGuid; List? categoryAbsoluteSlugs; List? barSpecialitySlugs; List? barTypeSlugs; List? brandNames; List? cuisineSlugs; List? mealTypeSlugs; List? parking; List? paymentOptions; List? priceMainDishes; List? eatingSuitabilitySlugs; List? takeAwaySlugs; List? wearPriceProfileSlugs; bool? wheelChairAccessible; bool? wifi; bool? outdoorSeating; bool? saveFoodAndMoney; OpenAtTimeDto? openAt; QueryFilterDto({this.term,this.placeGuid,this.adMessageGuid,this.categoryAbsoluteSlugs,this.barSpecialitySlugs,this.barTypeSlugs,this.brandNames,this.cuisineSlugs,this.mealTypeSlugs,this.parking,this.paymentOptions,this.priceMainDishes,this.eatingSuitabilitySlugs,this.takeAwaySlugs,this.wearPriceProfileSlugs,this.wheelChairAccessible,this.wifi,this.outdoorSeating,this.saveFoodAndMoney,this.openAt}); QueryFilterDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { term = json['term']; placeGuid = json['placeGuid']; adMessageGuid = json['adMessageGuid']; categoryAbsoluteSlugs = JsonConverters.fromJson(json['categoryAbsoluteSlugs'],'List',context!); barSpecialitySlugs = JsonConverters.fromJson(json['barSpecialitySlugs'],'List',context!); barTypeSlugs = JsonConverters.fromJson(json['barTypeSlugs'],'List',context!); brandNames = JsonConverters.fromJson(json['brandNames'],'List',context!); cuisineSlugs = JsonConverters.fromJson(json['cuisineSlugs'],'List',context!); mealTypeSlugs = JsonConverters.fromJson(json['mealTypeSlugs'],'List',context!); parking = JsonConverters.fromJson(json['parking'],'List',context!); paymentOptions = JsonConverters.fromJson(json['paymentOptions'],'List',context!); priceMainDishes = JsonConverters.fromJson(json['priceMainDishes'],'List',context!); eatingSuitabilitySlugs = JsonConverters.fromJson(json['eatingSuitabilitySlugs'],'List',context!); takeAwaySlugs = JsonConverters.fromJson(json['takeAwaySlugs'],'List',context!); wearPriceProfileSlugs = JsonConverters.fromJson(json['wearPriceProfileSlugs'],'List',context!); wheelChairAccessible = json['wheelChairAccessible']; wifi = json['wifi']; outdoorSeating = json['outdoorSeating']; saveFoodAndMoney = json['saveFoodAndMoney']; openAt = JsonConverters.fromJson(json['openAt'],'OpenAtTimeDto',context!); return this; } Map toJson() => { 'term': term, 'placeGuid': placeGuid, 'adMessageGuid': adMessageGuid, 'categoryAbsoluteSlugs': JsonConverters.toJson(categoryAbsoluteSlugs,'List',context!), 'barSpecialitySlugs': JsonConverters.toJson(barSpecialitySlugs,'List',context!), 'barTypeSlugs': JsonConverters.toJson(barTypeSlugs,'List',context!), 'brandNames': JsonConverters.toJson(brandNames,'List',context!), 'cuisineSlugs': JsonConverters.toJson(cuisineSlugs,'List',context!), 'mealTypeSlugs': JsonConverters.toJson(mealTypeSlugs,'List',context!), 'parking': JsonConverters.toJson(parking,'List',context!), 'paymentOptions': JsonConverters.toJson(paymentOptions,'List',context!), 'priceMainDishes': JsonConverters.toJson(priceMainDishes,'List',context!), 'eatingSuitabilitySlugs': JsonConverters.toJson(eatingSuitabilitySlugs,'List',context!), 'takeAwaySlugs': JsonConverters.toJson(takeAwaySlugs,'List',context!), 'wearPriceProfileSlugs': JsonConverters.toJson(wearPriceProfileSlugs,'List',context!), 'wheelChairAccessible': wheelChairAccessible, 'wifi': wifi, 'outdoorSeating': outdoorSeating, 'saveFoodAndMoney': saveFoodAndMoney, 'openAt': JsonConverters.toJson(openAt,'OpenAtTimeDto',context!) }; getTypeName() => "QueryFilterDto"; TypeContext? context = _ctx; } class QueryLocationDto implements IConvertible { double? longitude; double? latitude; double? searchRadiusInKm; QueryLocationDto({this.longitude,this.latitude,this.searchRadiusInKm}); QueryLocationDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { longitude = JsonConverters.toDouble(json['longitude']); latitude = JsonConverters.toDouble(json['latitude']); searchRadiusInKm = JsonConverters.toDouble(json['searchRadiusInKm']); return this; } Map toJson() => { 'longitude': longitude, 'latitude': latitude, 'searchRadiusInKm': searchRadiusInKm }; getTypeName() => "QueryLocationDto"; TypeContext? context = _ctx; } abstract class ICacheable { int? cacheVersion; } 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; } 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; } enum FeatureType { BarSpeciality, BarType, Cuisine, SaveFoodAndMoney, MealType, Menu, OutdoorSeating, Parking, PaymentOptions, PriceMainDish, SubCategories, SubCategoriesAndBrands, EatingSuitabilities, TakeAway, WearPriceProfile, WheelChairAccessible, Wifi, WebShop, Filtering, } class IndividualFeatureDataDto implements IConvertible { FeatureType? slug; String? label; IndividualFeatureDataDto({this.slug,this.label}); IndividualFeatureDataDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { slug = JsonConverters.fromJson(json['slug'],'FeatureType',context!); label = json['label']; return this; } Map toJson() => { 'slug': JsonConverters.toJson(slug,'FeatureType',context!), 'label': label }; getTypeName() => "IndividualFeatureDataDto"; TypeContext? context = _ctx; } class BarSpecialityDto implements IConvertible { String? slug; String? title; BarSpecialityDto({this.slug,this.title}); BarSpecialityDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { slug = json['slug']; title = json['title']; return this; } Map toJson() => { 'slug': slug, 'title': title }; getTypeName() => "BarSpecialityDto"; TypeContext? context = _ctx; } class BarTypeDto implements IConvertible { String? slug; String? title; BarTypeDto({this.slug,this.title}); BarTypeDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { slug = json['slug']; title = json['title']; return this; } Map toJson() => { 'slug': slug, 'title': title }; getTypeName() => "BarTypeDto"; 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 CuisineDto implements IConvertible { String? label; String? slug; CuisineDto({this.label,this.slug}); CuisineDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { label = json['label']; slug = json['slug']; return this; } Map toJson() => { 'label': label, 'slug': slug }; getTypeName() => "CuisineDto"; TypeContext? context = _ctx; } class MealTypeDto implements IConvertible { String? label; String? slug; MealTypeDto({this.label,this.slug}); MealTypeDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { label = json['label']; slug = json['slug']; return this; } Map toJson() => { 'label': label, 'slug': slug }; getTypeName() => "MealTypeDto"; TypeContext? context = _ctx; } class ParkingDto implements IConvertible { String? label; Parking? slug; ParkingDto({this.label,this.slug}); ParkingDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { label = json['label']; slug = JsonConverters.fromJson(json['slug'],'Parking',context!); return this; } Map toJson() => { 'label': label, 'slug': JsonConverters.toJson(slug,'Parking',context!) }; getTypeName() => "ParkingDto"; TypeContext? context = _ctx; } class PaymentOptionDto implements IConvertible { String? label; PaymentOption? slug; PaymentOptionDto({this.label,this.slug}); PaymentOptionDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { label = json['label']; slug = JsonConverters.fromJson(json['slug'],'PaymentOption',context!); return this; } Map toJson() => { 'label': label, 'slug': JsonConverters.toJson(slug,'PaymentOption',context!) }; getTypeName() => "PaymentOptionDto"; TypeContext? context = _ctx; } class EatingSuitabilityDto implements IConvertible { String? label; String? slug; EatingSuitabilityDto({this.label,this.slug}); EatingSuitabilityDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { label = json['label']; slug = json['slug']; return this; } Map toJson() => { 'label': label, 'slug': slug }; getTypeName() => "EatingSuitabilityDto"; TypeContext? context = _ctx; } class TakeAwayDto implements IConvertible { String? label; String? slug; TakeAwayDto({this.label,this.slug}); TakeAwayDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { label = json['label']; slug = json['slug']; return this; } Map toJson() => { 'label': label, 'slug': slug }; getTypeName() => "TakeAwayDto"; 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 MenuDto implements IConvertible { String? name; String? url; int? position; MenuDto({this.name,this.url,this.position}); MenuDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; url = json['url']; position = json['position']; return this; } Map toJson() => { 'name': name, 'url': url, 'position': position }; getTypeName() => "MenuDto"; TypeContext? context = _ctx; } 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; } enum PlaceType { Mall, Regular, } 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 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 MallOtherServiceDto implements IConvertible { String? serviceName; String? floor; MallOtherServiceDto({this.serviceName,this.floor}); MallOtherServiceDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { serviceName = json['serviceName']; floor = json['floor']; return this; } Map toJson() => { 'serviceName': serviceName, 'floor': floor }; getTypeName() => "MallOtherServiceDto"; TypeContext? context = _ctx; } class PlaceDto implements IConvertible { int? id; String? guid; String? overview; String? name; double? longitude; double? latitude; bool? claimed; String? organizationNumber; String? countryCode; String? placeState; int? followersCount; OpeningHours? openingHours; List? categories; List? featureData; List? barSpecialities; List? barTypes; List? brands; List? cuisines; List? mealTypes; List? parking; List? paymentOptions; List? eatingSuitabilities; List? takeAways; List? wearPriceProfiles; List? menus; ImageUrls? logoUrl; ImageUrls? imageUrl; bool? wheelchairAccessible; bool? wifi; bool? outdoorSeating; bool? saveFoodAndMoney; PlaceType? placeType; PlaceBasicDto? mall; PriceMainDishDto? priceMainDish; List? places; List? otherServices; String? floor; TimeZoneDto? timeZoneDto; int? businessId; PlaceContact? contact; PlaceAddress? address; PlaceDto({this.id,this.guid,this.overview,this.name,this.longitude,this.latitude,this.claimed,this.organizationNumber,this.countryCode,this.placeState,this.followersCount,this.openingHours,this.categories,this.featureData,this.barSpecialities,this.barTypes,this.brands,this.cuisines,this.mealTypes,this.parking,this.paymentOptions,this.eatingSuitabilities,this.takeAways,this.wearPriceProfiles,this.menus,this.logoUrl,this.imageUrl,this.wheelchairAccessible,this.wifi,this.outdoorSeating,this.saveFoodAndMoney,this.placeType,this.mall,this.priceMainDish,this.places,this.otherServices,this.floor,this.timeZoneDto,this.businessId,this.contact,this.address}); PlaceDto.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']; placeState = json['placeState']; followersCount = json['followersCount']; openingHours = JsonConverters.fromJson(json['openingHours'],'OpeningHours',context!); categories = JsonConverters.fromJson(json['categories'],'List',context!); featureData = JsonConverters.fromJson(json['featureData'],'List',context!); barSpecialities = JsonConverters.fromJson(json['barSpecialities'],'List',context!); barTypes = JsonConverters.fromJson(json['barTypes'],'List',context!); brands = JsonConverters.fromJson(json['brands'],'List',context!); cuisines = JsonConverters.fromJson(json['cuisines'],'List',context!); mealTypes = JsonConverters.fromJson(json['mealTypes'],'List',context!); parking = JsonConverters.fromJson(json['parking'],'List',context!); paymentOptions = JsonConverters.fromJson(json['paymentOptions'],'List',context!); eatingSuitabilities = JsonConverters.fromJson(json['eatingSuitabilities'],'List',context!); takeAways = JsonConverters.fromJson(json['takeAways'],'List',context!); wearPriceProfiles = JsonConverters.fromJson(json['wearPriceProfiles'],'List',context!); menus = JsonConverters.fromJson(json['menus'],'List',context!); logoUrl = JsonConverters.fromJson(json['logoUrl'],'ImageUrls',context!); imageUrl = JsonConverters.fromJson(json['imageUrl'],'ImageUrls',context!); wheelchairAccessible = json['wheelchairAccessible']; wifi = json['wifi']; outdoorSeating = json['outdoorSeating']; saveFoodAndMoney = json['saveFoodAndMoney']; placeType = JsonConverters.fromJson(json['placeType'],'PlaceType',context!); mall = JsonConverters.fromJson(json['mall'],'PlaceBasicDto',context!); priceMainDish = JsonConverters.fromJson(json['priceMainDish'],'PriceMainDishDto',context!); places = JsonConverters.fromJson(json['places'],'List',context!); otherServices = JsonConverters.fromJson(json['otherServices'],'List',context!); floor = json['floor']; timeZoneDto = JsonConverters.fromJson(json['timeZoneDto'],'TimeZoneDto',context!); businessId = json['businessId']; contact = JsonConverters.fromJson(json['contact'],'PlaceContact',context!); address = JsonConverters.fromJson(json['address'],'PlaceAddress',context!); return this; } Map toJson() => { 'id': id, 'guid': guid, 'overview': overview, 'name': name, 'longitude': longitude, 'latitude': latitude, 'claimed': claimed, 'organizationNumber': organizationNumber, 'countryCode': countryCode, 'placeState': placeState, 'followersCount': followersCount, 'openingHours': JsonConverters.toJson(openingHours,'OpeningHours',context!), 'categories': JsonConverters.toJson(categories,'List',context!), 'featureData': JsonConverters.toJson(featureData,'List',context!), 'barSpecialities': JsonConverters.toJson(barSpecialities,'List',context!), 'barTypes': JsonConverters.toJson(barTypes,'List',context!), 'brands': JsonConverters.toJson(brands,'List',context!), 'cuisines': JsonConverters.toJson(cuisines,'List',context!), 'mealTypes': JsonConverters.toJson(mealTypes,'List',context!), 'parking': JsonConverters.toJson(parking,'List',context!), 'paymentOptions': JsonConverters.toJson(paymentOptions,'List',context!), 'eatingSuitabilities': JsonConverters.toJson(eatingSuitabilities,'List',context!), 'takeAways': JsonConverters.toJson(takeAways,'List',context!), 'wearPriceProfiles': JsonConverters.toJson(wearPriceProfiles,'List',context!), 'menus': JsonConverters.toJson(menus,'List',context!), 'logoUrl': JsonConverters.toJson(logoUrl,'ImageUrls',context!), 'imageUrl': JsonConverters.toJson(imageUrl,'ImageUrls',context!), 'wheelchairAccessible': wheelchairAccessible, 'wifi': wifi, 'outdoorSeating': outdoorSeating, 'saveFoodAndMoney': saveFoodAndMoney, 'placeType': JsonConverters.toJson(placeType,'PlaceType',context!), 'mall': JsonConverters.toJson(mall,'PlaceBasicDto',context!), 'priceMainDish': JsonConverters.toJson(priceMainDish,'PriceMainDishDto',context!), 'places': JsonConverters.toJson(places,'List',context!), 'otherServices': JsonConverters.toJson(otherServices,'List',context!), 'floor': floor, 'timeZoneDto': JsonConverters.toJson(timeZoneDto,'TimeZoneDto',context!), 'businessId': businessId, 'contact': JsonConverters.toJson(contact,'PlaceContact',context!), 'address': JsonConverters.toJson(address,'PlaceAddress',context!) }; getTypeName() => "PlaceDto"; 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; } enum CategoryFacetTreeType { Parent, Selected, Available, } class CategoryFacetTreeDto implements IConvertible { String? name; String? slug; String? absoluteSlug; List? featureTypes; CategoryFacetTreeType? type; int? count; String? imageUrl; String? allImageUrl; String? iconImageUrl; int? position; List? children; CategoryFacetTreeDto({this.name,this.slug,this.absoluteSlug,this.featureTypes,this.type,this.count,this.imageUrl,this.allImageUrl,this.iconImageUrl,this.position,this.children}); CategoryFacetTreeDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; slug = json['slug']; absoluteSlug = json['absoluteSlug']; featureTypes = JsonConverters.fromJson(json['featureTypes'],'List',context!); type = JsonConverters.fromJson(json['type'],'CategoryFacetTreeType',context!); count = json['count']; 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, 'featureTypes': JsonConverters.toJson(featureTypes,'List',context!), 'type': JsonConverters.toJson(type,'CategoryFacetTreeType',context!), 'count': count, 'imageUrl': imageUrl, 'allImageUrl': allImageUrl, 'iconImageUrl': iconImageUrl, 'position': position, 'children': JsonConverters.toJson(children,'List',context!) }; getTypeName() => "CategoryFacetTreeDto"; TypeContext? context = _ctx; } class FindResponse implements IConvertible { List? adMessages; List? places; int? placeCount; int? adMessageCount; int? adMessageSaveFoodAndMoneyCount; DateTime? resultAt; List? categoryFacetTrees; FindResponse({this.adMessages,this.places,this.placeCount,this.adMessageCount,this.adMessageSaveFoodAndMoneyCount,this.resultAt,this.categoryFacetTrees}); FindResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { adMessages = JsonConverters.fromJson(json['adMessages'],'List',context!); places = JsonConverters.fromJson(json['places'],'List',context!); placeCount = json['placeCount']; adMessageCount = json['adMessageCount']; adMessageSaveFoodAndMoneyCount = json['adMessageSaveFoodAndMoneyCount']; resultAt = JsonConverters.fromJson(json['resultAt'],'DateTime',context!); categoryFacetTrees = JsonConverters.fromJson(json['categoryFacetTrees'],'List',context!); return this; } Map toJson() => { 'adMessages': JsonConverters.toJson(adMessages,'List',context!), 'places': JsonConverters.toJson(places,'List',context!), 'placeCount': placeCount, 'adMessageCount': adMessageCount, 'adMessageSaveFoodAndMoneyCount': adMessageSaveFoodAndMoneyCount, 'resultAt': JsonConverters.toJson(resultAt,'DateTime',context!), 'categoryFacetTrees': JsonConverters.toJson(categoryFacetTrees,'List',context!) }; getTypeName() => "FindResponse"; TypeContext? context = _ctx; } // @Route("/find", "GET") class FindRequest implements IReturn, IGet, IPost, ICacheable, IConvertible { int? offset; int? size; DateTime? resultAt; QueryFilterDto? filter; QueryLocationDto? location; int? cacheVersion; FindRequest({this.offset,this.size,this.resultAt,this.filter,this.location,this.cacheVersion}); FindRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { offset = json['offset']; size = json['size']; resultAt = JsonConverters.fromJson(json['resultAt'],'DateTime',context!); filter = JsonConverters.fromJson(json['filter'],'QueryFilterDto',context!); location = JsonConverters.fromJson(json['location'],'QueryLocationDto',context!); cacheVersion = json['cacheVersion']; return this; } Map toJson() => { 'offset': offset, 'size': size, 'resultAt': JsonConverters.toJson(resultAt,'DateTime',context!), 'filter': JsonConverters.toJson(filter,'QueryFilterDto',context!), 'location': JsonConverters.toJson(location,'QueryLocationDto',context!), 'cacheVersion': cacheVersion }; createResponse() => FindResponse(); getResponseTypeName() => "FindResponse"; getTypeName() => "FindRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'ConsumerApi', types: { 'Parking': TypeInfo(TypeOf.Enum, enumValues:Parking.values), 'PaymentOption': TypeInfo(TypeOf.Enum, enumValues:PaymentOption.values), 'PriceMainDish': TypeInfo(TypeOf.Enum, enumValues:PriceMainDish.values), 'DayOfWeek': TypeInfo(TypeOf.Enum, enumValues:DayOfWeek.values), 'OpenAtTimeDto': TypeInfo(TypeOf.Class, create:() => OpenAtTimeDto()), 'QueryFilterDto': TypeInfo(TypeOf.Class, create:() => QueryFilterDto()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'QueryLocationDto': TypeInfo(TypeOf.Class, create:() => QueryLocationDto()), 'ICacheable': TypeInfo(TypeOf.Interface), 'OpeningHour': TypeInfo(TypeOf.Class, create:() => OpeningHour()), 'WeeklyOpeningHours': TypeInfo(TypeOf.Class, create:() => WeeklyOpeningHours()), 'OpeningHours': TypeInfo(TypeOf.Class, create:() => OpeningHours()), 'CategoryTreeDto': TypeInfo(TypeOf.Class, create:() => CategoryTreeDto()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'FeatureType': TypeInfo(TypeOf.Enum, enumValues:FeatureType.values), 'IndividualFeatureDataDto': TypeInfo(TypeOf.Class, create:() => IndividualFeatureDataDto()), 'BarSpecialityDto': TypeInfo(TypeOf.Class, create:() => BarSpecialityDto()), 'BarTypeDto': TypeInfo(TypeOf.Class, create:() => BarTypeDto()), 'BrandDto': TypeInfo(TypeOf.Class, create:() => BrandDto()), 'PlaceCustomBrandDto': TypeInfo(TypeOf.Class, create:() => PlaceCustomBrandDto()), 'PlaceSelectedBrandDto': TypeInfo(TypeOf.Class, create:() => PlaceSelectedBrandDto()), 'CuisineDto': TypeInfo(TypeOf.Class, create:() => CuisineDto()), 'MealTypeDto': TypeInfo(TypeOf.Class, create:() => MealTypeDto()), 'ParkingDto': TypeInfo(TypeOf.Class, create:() => ParkingDto()), 'PaymentOptionDto': TypeInfo(TypeOf.Class, create:() => PaymentOptionDto()), 'EatingSuitabilityDto': TypeInfo(TypeOf.Class, create:() => EatingSuitabilityDto()), 'TakeAwayDto': TypeInfo(TypeOf.Class, create:() => TakeAwayDto()), 'WearPriceProfileDto': TypeInfo(TypeOf.Class, create:() => WearPriceProfileDto()), 'MenuDto': TypeInfo(TypeOf.Class, create:() => MenuDto()), 'ImageUrls': TypeInfo(TypeOf.Class, create:() => ImageUrls()), 'PlaceType': TypeInfo(TypeOf.Enum, enumValues:PlaceType.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()), 'PlaceBasicDto': TypeInfo(TypeOf.Class, create:() => PlaceBasicDto()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'MallOtherServiceDto': TypeInfo(TypeOf.Class, create:() => MallOtherServiceDto()), 'PlaceDto': TypeInfo(TypeOf.Class, create:() => PlaceDto()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), '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:() => []), 'CategoryFacetTreeType': TypeInfo(TypeOf.Enum, enumValues:CategoryFacetTreeType.values), 'CategoryFacetTreeDto': TypeInfo(TypeOf.Class, create:() => CategoryFacetTreeDto()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'FindResponse': TypeInfo(TypeOf.Class, create:() => FindResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'FindRequest': TypeInfo(TypeOf.Class, create:() => FindRequest()), });