/* Options: Date: 2024-12-23 11:54:50 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: AddSavedSearchRequest.* //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 AddSavedSearchResponse implements IConvertible { int? savedSearchId; AddSavedSearchResponse({this.savedSearchId}); AddSavedSearchResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { savedSearchId = json['savedSearchId']; return this; } Map toJson() => { 'savedSearchId': savedSearchId }; getTypeName() => "AddSavedSearchResponse"; TypeContext? context = _ctx; } // @Route("/searches/AddSavedSearch", "POST") class AddSavedSearchRequest implements IReturn, IPost, IConvertible { String? name; QueryFilterDto? filter; QueryLocationDto? location; AddSavedSearchRequest({this.name,this.filter,this.location}); AddSavedSearchRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; filter = JsonConverters.fromJson(json['filter'],'QueryFilterDto',context!); location = JsonConverters.fromJson(json['location'],'QueryLocationDto',context!); return this; } Map toJson() => { 'name': name, 'filter': JsonConverters.toJson(filter,'QueryFilterDto',context!), 'location': JsonConverters.toJson(location,'QueryLocationDto',context!) }; createResponse() => AddSavedSearchResponse(); getResponseTypeName() => "AddSavedSearchResponse"; getTypeName() => "AddSavedSearchRequest"; 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()), 'AddSavedSearchResponse': TypeInfo(TypeOf.Class, create:() => AddSavedSearchResponse()), 'AddSavedSearchRequest': TypeInfo(TypeOf.Class, create:() => AddSavedSearchRequest()), });