/* Options: Date: 2025-12-06 08:04:04 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://business-api.brovs.com //GlobalNamespace: BusinessApi //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetNearByPlacesRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library BusinessApi; import 'package:servicestack/servicestack.dart'; enum PriceMainDish { Value, Medium, High, FineDining, } 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 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; } enum PlaceType { Mall, Regular, } 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 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 MallOtherServiceDto implements IConvertible { int? id; String? serviceName; String? floor; MallOtherServiceDto({this.id,this.serviceName,this.floor}); MallOtherServiceDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; serviceName = json['serviceName']; floor = json['floor']; return this; } Map toJson() => { 'id': id, 'serviceName': serviceName, 'floor': floor }; getTypeName() => "MallOtherServiceDto"; TypeContext? context = _ctx; } class PlaceBasicDto implements IConvertible { int? id; String? guid; String? name; int? businessId; double? longitude; double? latitude; bool? claimed; String? organizationNumber; String? countryCode; String? overview; OpeningHours? openingHours; PlaceType? placeType; PlaceContact? contact; PlaceAddress? address; bool? wheelChairAccessible; bool? wifi; bool? outdoorSeating; bool? saveFoodAndMoney; TimeZoneDto? timeZoneDto; PriceMainDishDto? priceMainDish; List? otherServices = []; String? floor; PlaceBasicDto({this.id,this.guid,this.name,this.businessId,this.longitude,this.latitude,this.claimed,this.organizationNumber,this.countryCode,this.overview,this.openingHours,this.placeType,this.contact,this.address,this.wheelChairAccessible,this.wifi,this.outdoorSeating,this.saveFoodAndMoney,this.timeZoneDto,this.priceMainDish,this.otherServices,this.floor}); PlaceBasicDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; guid = json['guid']; name = json['name']; businessId = json['businessId']; longitude = JsonConverters.toDouble(json['longitude']); latitude = JsonConverters.toDouble(json['latitude']); claimed = json['claimed']; organizationNumber = json['organizationNumber']; countryCode = json['countryCode']; overview = json['overview']; openingHours = JsonConverters.fromJson(json['openingHours'],'OpeningHours',context!); placeType = JsonConverters.fromJson(json['placeType'],'PlaceType',context!); contact = JsonConverters.fromJson(json['contact'],'PlaceContact',context!); address = JsonConverters.fromJson(json['address'],'PlaceAddress',context!); wheelChairAccessible = json['wheelChairAccessible']; wifi = json['wifi']; outdoorSeating = json['outdoorSeating']; saveFoodAndMoney = json['saveFoodAndMoney']; timeZoneDto = JsonConverters.fromJson(json['timeZoneDto'],'TimeZoneDto',context!); priceMainDish = JsonConverters.fromJson(json['priceMainDish'],'PriceMainDishDto',context!); otherServices = JsonConverters.fromJson(json['otherServices'],'List',context!); floor = json['floor']; return this; } Map toJson() => { 'id': id, 'guid': guid, 'name': name, 'businessId': businessId, 'longitude': longitude, 'latitude': latitude, 'claimed': claimed, 'organizationNumber': organizationNumber, 'countryCode': countryCode, 'overview': overview, 'openingHours': JsonConverters.toJson(openingHours,'OpeningHours',context!), 'placeType': JsonConverters.toJson(placeType,'PlaceType',context!), 'contact': JsonConverters.toJson(contact,'PlaceContact',context!), 'address': JsonConverters.toJson(address,'PlaceAddress',context!), 'wheelChairAccessible': wheelChairAccessible, 'wifi': wifi, 'outdoorSeating': outdoorSeating, 'saveFoodAndMoney': saveFoodAndMoney, 'timeZoneDto': JsonConverters.toJson(timeZoneDto,'TimeZoneDto',context!), 'priceMainDish': JsonConverters.toJson(priceMainDish,'PriceMainDishDto',context!), 'otherServices': JsonConverters.toJson(otherServices,'List',context!), 'floor': floor }; getTypeName() => "PlaceBasicDto"; TypeContext? context = _ctx; } class GetNearByPlacesResponse implements IConvertible { List? places = []; GetNearByPlacesResponse({this.places}); GetNearByPlacesResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { places = JsonConverters.fromJson(json['places'],'List',context!); return this; } Map toJson() => { 'places': JsonConverters.toJson(places,'List',context!) }; getTypeName() => "GetNearByPlacesResponse"; TypeContext? context = _ctx; } // @Route("/mall/get_nearby_places", "GET") class GetNearByPlacesRequest implements IReturn, IGet, IConvertible { int? mallId; double? radiusInKm; GetNearByPlacesRequest({this.mallId,this.radiusInKm}); GetNearByPlacesRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { mallId = json['mallId']; radiusInKm = JsonConverters.toDouble(json['radiusInKm']); return this; } Map toJson() => { 'mallId': mallId, 'radiusInKm': radiusInKm }; createResponse() => GetNearByPlacesResponse(); getResponseTypeName() => "GetNearByPlacesResponse"; getTypeName() => "GetNearByPlacesRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'BusinessApi', types: { 'PriceMainDish': TypeInfo(TypeOf.Enum, enumValues:PriceMainDish.values), 'OpeningHour': TypeInfo(TypeOf.Class, create:() => OpeningHour()), 'WeeklyOpeningHours': TypeInfo(TypeOf.Class, create:() => WeeklyOpeningHours()), 'OpeningHours': TypeInfo(TypeOf.Class, create:() => OpeningHours()), 'PriceMainDishDto': TypeInfo(TypeOf.Class, create:() => PriceMainDishDto()), 'PlaceType': TypeInfo(TypeOf.Enum, enumValues:PlaceType.values), 'PlaceContact': TypeInfo(TypeOf.Class, create:() => PlaceContact()), 'PlaceAddress': TypeInfo(TypeOf.Class, create:() => PlaceAddress()), 'TimeZoneDto': TypeInfo(TypeOf.Class, create:() => TimeZoneDto()), 'MallOtherServiceDto': TypeInfo(TypeOf.Class, create:() => MallOtherServiceDto()), 'PlaceBasicDto': TypeInfo(TypeOf.Class, create:() => PlaceBasicDto()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetNearByPlacesResponse': TypeInfo(TypeOf.Class, create:() => GetNearByPlacesResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetNearByPlacesRequest': TypeInfo(TypeOf.Class, create:() => GetNearByPlacesRequest()), });