/* Options: Date: 2024-12-23 10:16:12 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: FindSearchCompletionRequest.* //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; } class FindSearchCompletionCategory implements IConvertible { String? name; String? absoluteSlug; FindSearchCompletionCategory({this.name,this.absoluteSlug}); FindSearchCompletionCategory.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; absoluteSlug = json['absoluteSlug']; return this; } Map toJson() => { 'name': name, 'absoluteSlug': absoluteSlug }; getTypeName() => "FindSearchCompletionCategory"; TypeContext? context = _ctx; } class FindSearchCompletionBrand implements IConvertible { String? name; String? categoryAbsoluteSlug; FindSearchCompletionBrand({this.name,this.categoryAbsoluteSlug}); FindSearchCompletionBrand.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; categoryAbsoluteSlug = json['categoryAbsoluteSlug']; return this; } Map toJson() => { 'name': name, 'categoryAbsoluteSlug': categoryAbsoluteSlug }; getTypeName() => "FindSearchCompletionBrand"; TypeContext? context = _ctx; } class FindSearchCompletionPlace implements IConvertible { String? name; String? guid; FindSearchCompletionPlace({this.name,this.guid}); FindSearchCompletionPlace.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; guid = json['guid']; return this; } Map toJson() => { 'name': name, 'guid': guid }; getTypeName() => "FindSearchCompletionPlace"; TypeContext? context = _ctx; } class FindSearchCompletionFreeText implements IConvertible { String? term; FindSearchCompletionFreeText({this.term}); FindSearchCompletionFreeText.fromJson(Map json) { fromMap(json); } fromMap(Map json) { term = json['term']; return this; } Map toJson() => { 'term': term }; getTypeName() => "FindSearchCompletionFreeText"; TypeContext? context = _ctx; } class FindSearchCompletionEntry implements IConvertible { FindSearchCompletionCategory? category; FindSearchCompletionBrand? brand; FindSearchCompletionPlace? place; FindSearchCompletionFreeText? freeText; FindSearchCompletionEntry({this.category,this.brand,this.place,this.freeText}); FindSearchCompletionEntry.fromJson(Map json) { fromMap(json); } fromMap(Map json) { category = JsonConverters.fromJson(json['category'],'FindSearchCompletionCategory',context!); brand = JsonConverters.fromJson(json['brand'],'FindSearchCompletionBrand',context!); place = JsonConverters.fromJson(json['place'],'FindSearchCompletionPlace',context!); freeText = JsonConverters.fromJson(json['freeText'],'FindSearchCompletionFreeText',context!); return this; } Map toJson() => { 'category': JsonConverters.toJson(category,'FindSearchCompletionCategory',context!), 'brand': JsonConverters.toJson(brand,'FindSearchCompletionBrand',context!), 'place': JsonConverters.toJson(place,'FindSearchCompletionPlace',context!), 'freeText': JsonConverters.toJson(freeText,'FindSearchCompletionFreeText',context!) }; getTypeName() => "FindSearchCompletionEntry"; TypeContext? context = _ctx; } class FindSearchCompletionResponse implements IConvertible { List? suggestions; FindSearchCompletionResponse({this.suggestions}); FindSearchCompletionResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { suggestions = JsonConverters.fromJson(json['suggestions'],'List',context!); return this; } Map toJson() => { 'suggestions': JsonConverters.toJson(suggestions,'List',context!) }; getTypeName() => "FindSearchCompletionResponse"; TypeContext? context = _ctx; } // @Route("/find/completion", "GET") class FindSearchCompletionRequest implements IReturn, IGet, IPost, IConvertible { QueryFilterDto? filter; QueryLocationDto? location; FindSearchCompletionRequest({this.filter,this.location}); FindSearchCompletionRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { filter = JsonConverters.fromJson(json['filter'],'QueryFilterDto',context!); location = JsonConverters.fromJson(json['location'],'QueryLocationDto',context!); return this; } Map toJson() => { 'filter': JsonConverters.toJson(filter,'QueryFilterDto',context!), 'location': JsonConverters.toJson(location,'QueryLocationDto',context!) }; createResponse() => FindSearchCompletionResponse(); getResponseTypeName() => "FindSearchCompletionResponse"; getTypeName() => "FindSearchCompletionRequest"; 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()), 'FindSearchCompletionCategory': TypeInfo(TypeOf.Class, create:() => FindSearchCompletionCategory()), 'FindSearchCompletionBrand': TypeInfo(TypeOf.Class, create:() => FindSearchCompletionBrand()), 'FindSearchCompletionPlace': TypeInfo(TypeOf.Class, create:() => FindSearchCompletionPlace()), 'FindSearchCompletionFreeText': TypeInfo(TypeOf.Class, create:() => FindSearchCompletionFreeText()), 'FindSearchCompletionEntry': TypeInfo(TypeOf.Class, create:() => FindSearchCompletionEntry()), 'FindSearchCompletionResponse': TypeInfo(TypeOf.Class, create:() => FindSearchCompletionResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'FindSearchCompletionRequest': TypeInfo(TypeOf.Class, create:() => FindSearchCompletionRequest()), });