/* Options: Date: 2025-05-07 00:40:05 Version: 8.70 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://unstable-consumer-api.brovs.com //GlobalNamespace: ConsumerApi //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: NextToClaimBusinessRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library ConsumerApi; import 'package:servicestack/servicestack.dart'; 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 PriceMainDishApiDto implements IConvertible { String? title; PriceMainDish? slug; PriceMainDishApiDto({this.title,this.slug}); PriceMainDishApiDto.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() => "PriceMainDishApiDto"; 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 CategoryTreeApiDto implements IConvertible { String? name; String? slug; String? absoluteSlug; String? imageUrl; String? allImageUrl; String? iconImageUrl; int? position; List? children = []; CategoryTreeApiDto({this.name,this.slug,this.absoluteSlug,this.imageUrl,this.allImageUrl,this.iconImageUrl,this.position,this.children}); CategoryTreeApiDto.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() => "CategoryTreeApiDto"; 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; } class WearPriceProfileEsDto implements IConvertible { String? slug; String? label; WearPriceProfileEsDto({this.slug,this.label}); WearPriceProfileEsDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { slug = json['slug']; label = json['label']; return this; } Map toJson() => { 'slug': slug, 'label': label }; getTypeName() => "WearPriceProfileEsDto"; TypeContext? context = _ctx; } class BrandApiDto implements IConvertible { String? name; BrandApiDto({this.name}); BrandApiDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; return this; } Map toJson() => { 'name': name }; getTypeName() => "BrandApiDto"; TypeContext? context = _ctx; } class PlaceCustomBrandApiDto implements IConvertible { String? name; PlaceCustomBrandApiDto({this.name}); PlaceCustomBrandApiDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; return this; } Map toJson() => { 'name': name }; getTypeName() => "PlaceCustomBrandApiDto"; TypeContext? context = _ctx; } class PlaceSelectedBrandApiDto implements IConvertible { BrandApiDto? brand; List? categoryAbsoluteSlugs = []; PlaceCustomBrandApiDto? placeCustomBrand; PlaceSelectedBrandApiDto({this.brand,this.categoryAbsoluteSlugs,this.placeCustomBrand}); PlaceSelectedBrandApiDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { brand = JsonConverters.fromJson(json['brand'],'BrandApiDto',context!); categoryAbsoluteSlugs = JsonConverters.fromJson(json['categoryAbsoluteSlugs'],'List',context!); placeCustomBrand = JsonConverters.fromJson(json['placeCustomBrand'],'PlaceCustomBrandApiDto',context!); return this; } Map toJson() => { 'brand': JsonConverters.toJson(brand,'BrandApiDto',context!), 'categoryAbsoluteSlugs': JsonConverters.toJson(categoryAbsoluteSlugs,'List',context!), 'placeCustomBrand': JsonConverters.toJson(placeCustomBrand,'PlaceCustomBrandApiDto',context!) }; getTypeName() => "PlaceSelectedBrandApiDto"; TypeContext? context = _ctx; } class PlaceBasicApiDto 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; PriceMainDishApiDto? priceMainDish; TimeZoneDto? timeZoneDto; int? businessId; PlaceContact? contact; PlaceAddress? address; List? categories = []; ImageUrls? logoUrl; ImageUrls? imageUrl; List? wearPriceProfiles = []; List? brands = []; String? floor; PlaceBasicApiDto({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}); PlaceBasicApiDto.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'],'PriceMainDishApiDto',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,'PriceMainDishApiDto',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() => "PlaceBasicApiDto"; TypeContext? context = _ctx; } enum NextClaimStep { AuthenticateWithVipps, CreatePassword, AcceptBusinessTermsOfService, Claim, Completed, } class ClaimUserInfo implements IConvertible { String? firstName; String? lastName; String? email; bool? legalIdentityVerified; String? phoneNumber; ClaimUserInfo({this.firstName,this.lastName,this.email,this.legalIdentityVerified,this.phoneNumber}); ClaimUserInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { firstName = json['firstName']; lastName = json['lastName']; email = json['email']; legalIdentityVerified = json['legalIdentityVerified']; phoneNumber = json['phoneNumber']; return this; } Map toJson() => { 'firstName': firstName, 'lastName': lastName, 'email': email, 'legalIdentityVerified': legalIdentityVerified, 'phoneNumber': phoneNumber }; getTypeName() => "ClaimUserInfo"; TypeContext? context = _ctx; } class NextToClaimBusinessResponse implements IConvertible { NextClaimStep? nextStep; ClaimUserInfo? user; PlaceBasicApiDto? place; NextToClaimBusinessResponse({this.nextStep,this.user,this.place}); NextToClaimBusinessResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { nextStep = JsonConverters.fromJson(json['nextStep'],'NextClaimStep',context!); user = JsonConverters.fromJson(json['user'],'ClaimUserInfo',context!); place = JsonConverters.fromJson(json['place'],'PlaceBasicApiDto',context!); return this; } Map toJson() => { 'nextStep': JsonConverters.toJson(nextStep,'NextClaimStep',context!), 'user': JsonConverters.toJson(user,'ClaimUserInfo',context!), 'place': JsonConverters.toJson(place,'PlaceBasicApiDto',context!) }; getTypeName() => "NextToClaimBusinessResponse"; TypeContext? context = _ctx; } // @Route("/business/next-to-claim", "POST") class NextToClaimBusinessRequest implements IReturn, IPost, IConvertible { String? placeGuid; NextToClaimBusinessRequest({this.placeGuid}); NextToClaimBusinessRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { placeGuid = json['placeGuid']; return this; } Map toJson() => { 'placeGuid': placeGuid }; createResponse() => NextToClaimBusinessResponse(); getResponseTypeName() => "NextToClaimBusinessResponse"; getTypeName() => "NextToClaimBusinessRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'ConsumerApi', types: { '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), 'PriceMainDishApiDto': TypeInfo(TypeOf.Class, create:() => PriceMainDishApiDto()), 'TimeZoneDto': TypeInfo(TypeOf.Class, create:() => TimeZoneDto()), 'PlaceContact': TypeInfo(TypeOf.Class, create:() => PlaceContact()), 'PlaceAddress': TypeInfo(TypeOf.Class, create:() => PlaceAddress()), 'CategoryTreeApiDto': TypeInfo(TypeOf.Class, create:() => CategoryTreeApiDto()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ImageUrls': TypeInfo(TypeOf.Class, create:() => ImageUrls()), 'WearPriceProfileEsDto': TypeInfo(TypeOf.Class, create:() => WearPriceProfileEsDto()), 'BrandApiDto': TypeInfo(TypeOf.Class, create:() => BrandApiDto()), 'PlaceCustomBrandApiDto': TypeInfo(TypeOf.Class, create:() => PlaceCustomBrandApiDto()), 'PlaceSelectedBrandApiDto': TypeInfo(TypeOf.Class, create:() => PlaceSelectedBrandApiDto()), 'PlaceBasicApiDto': TypeInfo(TypeOf.Class, create:() => PlaceBasicApiDto()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'NextClaimStep': TypeInfo(TypeOf.Enum, enumValues:NextClaimStep.values), 'ClaimUserInfo': TypeInfo(TypeOf.Class, create:() => ClaimUserInfo()), 'NextToClaimBusinessResponse': TypeInfo(TypeOf.Class, create:() => NextToClaimBusinessResponse()), 'NextToClaimBusinessRequest': TypeInfo(TypeOf.Class, create:() => NextToClaimBusinessRequest()), });