POST | /share/share-place-link-used | A share place link was used | Validates the JWT token with the identity of the sharing user and the shared place and returns relevant information. |
---|
library ConsumerApi;
import 'package:servicestack/servicestack.dart';
class SharingUser implements IConvertible
{
String? firstName;
String? lastName;
String? profilePhotoUrl;
SharingUser({this.firstName,this.lastName,this.profilePhotoUrl});
SharingUser.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
firstName = json['firstName'];
lastName = json['lastName'];
profilePhotoUrl = json['profilePhotoUrl'];
return this;
}
Map<String, dynamic> toJson() => {
'firstName': firstName,
'lastName': lastName,
'profilePhotoUrl': profilePhotoUrl
};
getTypeName() => "SharingUser";
TypeContext? context = _ctx;
}
class OpeningHour implements IConvertible
{
int? openAtHour;
int? openAtMinute;
int? closeAtHour;
int? closeAtMinute;
OpeningHour({this.openAtHour,this.openAtMinute,this.closeAtHour,this.closeAtMinute});
OpeningHour.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
openAtHour = json['openAtHour'];
openAtMinute = json['openAtMinute'];
closeAtHour = json['closeAtHour'];
closeAtMinute = json['closeAtMinute'];
return this;
}
Map<String, dynamic> 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<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> 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<String, dynamic> 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<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
weekly = JsonConverters.fromJson(json['weekly'],'WeeklyOpeningHours',context!);
return this;
}
Map<String, dynamic> toJson() => {
'weekly': JsonConverters.toJson(weekly,'WeeklyOpeningHours',context!)
};
getTypeName() => "OpeningHours";
TypeContext? context = _ctx;
}
class CategoryTreeApiDto implements IConvertible
{
String? name;
String? slug;
String? absoluteSlug;
String? imageUrl;
String? allImageUrl;
String? iconImageUrl;
int? position;
List<CategoryTreeApiDto>? children = [];
CategoryTreeApiDto({this.name,this.slug,this.absoluteSlug,this.imageUrl,this.allImageUrl,this.iconImageUrl,this.position,this.children});
CategoryTreeApiDto.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> 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<CategoryTreeApiDto>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'name': name,
'slug': slug,
'absoluteSlug': absoluteSlug,
'imageUrl': imageUrl,
'allImageUrl': allImageUrl,
'iconImageUrl': iconImageUrl,
'position': position,
'children': JsonConverters.toJson(children,'List<CategoryTreeApiDto>',context!)
};
getTypeName() => "CategoryTreeApiDto";
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 IndividualFeatureDataApiDto implements IConvertible
{
FeatureType? slug;
String? label;
IndividualFeatureDataApiDto({this.slug,this.label});
IndividualFeatureDataApiDto.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
slug = JsonConverters.fromJson(json['slug'],'FeatureType',context!);
label = json['label'];
return this;
}
Map<String, dynamic> toJson() => {
'slug': JsonConverters.toJson(slug,'FeatureType',context!),
'label': label
};
getTypeName() => "IndividualFeatureDataApiDto";
TypeContext? context = _ctx;
}
class BarSpecialityEsDto implements IConvertible
{
String? slug;
String? title;
BarSpecialityEsDto({this.slug,this.title});
BarSpecialityEsDto.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
slug = json['slug'];
title = json['title'];
return this;
}
Map<String, dynamic> toJson() => {
'slug': slug,
'title': title
};
getTypeName() => "BarSpecialityEsDto";
TypeContext? context = _ctx;
}
class BarTypeEsDto implements IConvertible
{
String? slug;
String? title;
BarTypeEsDto({this.slug,this.title});
BarTypeEsDto.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
slug = json['slug'];
title = json['title'];
return this;
}
Map<String, dynamic> toJson() => {
'slug': slug,
'title': title
};
getTypeName() => "BarTypeEsDto";
TypeContext? context = _ctx;
}
class BrandApiDto implements IConvertible
{
String? name;
BrandApiDto({this.name});
BrandApiDto.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
name = json['name'];
return this;
}
Map<String, dynamic> toJson() => {
'name': name
};
getTypeName() => "BrandApiDto";
TypeContext? context = _ctx;
}
class PlaceCustomBrandApiDto implements IConvertible
{
String? name;
PlaceCustomBrandApiDto({this.name});
PlaceCustomBrandApiDto.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
name = json['name'];
return this;
}
Map<String, dynamic> toJson() => {
'name': name
};
getTypeName() => "PlaceCustomBrandApiDto";
TypeContext? context = _ctx;
}
class PlaceSelectedBrandApiDto implements IConvertible
{
BrandApiDto? brand;
List<String>? categoryAbsoluteSlugs = [];
PlaceCustomBrandApiDto? placeCustomBrand;
PlaceSelectedBrandApiDto({this.brand,this.categoryAbsoluteSlugs,this.placeCustomBrand});
PlaceSelectedBrandApiDto.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
brand = JsonConverters.fromJson(json['brand'],'BrandApiDto',context!);
categoryAbsoluteSlugs = JsonConverters.fromJson(json['categoryAbsoluteSlugs'],'List<String>',context!);
placeCustomBrand = JsonConverters.fromJson(json['placeCustomBrand'],'PlaceCustomBrandApiDto',context!);
return this;
}
Map<String, dynamic> toJson() => {
'brand': JsonConverters.toJson(brand,'BrandApiDto',context!),
'categoryAbsoluteSlugs': JsonConverters.toJson(categoryAbsoluteSlugs,'List<String>',context!),
'placeCustomBrand': JsonConverters.toJson(placeCustomBrand,'PlaceCustomBrandApiDto',context!)
};
getTypeName() => "PlaceSelectedBrandApiDto";
TypeContext? context = _ctx;
}
class CuisineEsDto implements IConvertible
{
String? label;
String? slug;
CuisineEsDto({this.label,this.slug});
CuisineEsDto.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
label = json['label'];
slug = json['slug'];
return this;
}
Map<String, dynamic> toJson() => {
'label': label,
'slug': slug
};
getTypeName() => "CuisineEsDto";
TypeContext? context = _ctx;
}
class MealTypeApiDto implements IConvertible
{
String? label;
String? slug;
MealTypeApiDto({this.label,this.slug});
MealTypeApiDto.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
label = json['label'];
slug = json['slug'];
return this;
}
Map<String, dynamic> toJson() => {
'label': label,
'slug': slug
};
getTypeName() => "MealTypeApiDto";
TypeContext? context = _ctx;
}
enum Parking
{
StreetParking,
ParkingGarageNearby,
}
class ParkingApiDto implements IConvertible
{
String? label;
Parking? slug;
ParkingApiDto({this.label,this.slug});
ParkingApiDto.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
label = json['label'];
slug = JsonConverters.fromJson(json['slug'],'Parking',context!);
return this;
}
Map<String, dynamic> toJson() => {
'label': label,
'slug': JsonConverters.toJson(slug,'Parking',context!)
};
getTypeName() => "ParkingApiDto";
TypeContext? context = _ctx;
}
enum PaymentOption
{
Visa,
MasterCard,
AmericanExpress,
Diners,
Vipps,
}
class PaymentOptionApiDto implements IConvertible
{
String? label;
PaymentOption? slug;
PaymentOptionApiDto({this.label,this.slug});
PaymentOptionApiDto.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
label = json['label'];
slug = JsonConverters.fromJson(json['slug'],'PaymentOption',context!);
return this;
}
Map<String, dynamic> toJson() => {
'label': label,
'slug': JsonConverters.toJson(slug,'PaymentOption',context!)
};
getTypeName() => "PaymentOptionApiDto";
TypeContext? context = _ctx;
}
class EatingSuitabilityApiDto implements IConvertible
{
String? label;
String? slug;
EatingSuitabilityApiDto({this.label,this.slug});
EatingSuitabilityApiDto.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
label = json['label'];
slug = json['slug'];
return this;
}
Map<String, dynamic> toJson() => {
'label': label,
'slug': slug
};
getTypeName() => "EatingSuitabilityApiDto";
TypeContext? context = _ctx;
}
class TakeAwayApiDto implements IConvertible
{
String? label;
String? slug;
TakeAwayApiDto({this.label,this.slug});
TakeAwayApiDto.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
label = json['label'];
slug = json['slug'];
return this;
}
Map<String, dynamic> toJson() => {
'label': label,
'slug': slug
};
getTypeName() => "TakeAwayApiDto";
TypeContext? context = _ctx;
}
class WearPriceProfileEsDto implements IConvertible
{
String? slug;
String? label;
WearPriceProfileEsDto({this.slug,this.label});
WearPriceProfileEsDto.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
slug = json['slug'];
label = json['label'];
return this;
}
Map<String, dynamic> toJson() => {
'slug': slug,
'label': label
};
getTypeName() => "WearPriceProfileEsDto";
TypeContext? context = _ctx;
}
class MenuEsDto implements IConvertible
{
String? name;
String? url;
int? position;
MenuEsDto({this.name,this.url,this.position});
MenuEsDto.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
name = json['name'];
url = json['url'];
position = json['position'];
return this;
}
Map<String, dynamic> toJson() => {
'name': name,
'url': url,
'position': position
};
getTypeName() => "MenuEsDto";
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<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
preview = json['preview'];
small = json['small'];
medium = json['medium'];
large = json['large'];
return this;
}
Map<String, dynamic> toJson() => {
'preview': preview,
'small': small,
'medium': medium,
'large': large
};
getTypeName() => "ImageUrls";
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<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
title = json['title'];
slug = JsonConverters.fromJson(json['slug'],'PriceMainDish',context!);
return this;
}
Map<String, dynamic> 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<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> 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<String, dynamic> 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<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
phone = json['phone'];
email = json['email'];
website = json['website'];
webShop = json['webShop'];
return this;
}
Map<String, dynamic> 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<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
street = json['street'];
postalCode = json['postalCode'];
region = json['region'];
countryCode = json['countryCode'];
return this;
}
Map<String, dynamic> toJson() => {
'street': street,
'postalCode': postalCode,
'region': region,
'countryCode': countryCode
};
getTypeName() => "PlaceAddress";
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<CategoryTreeApiDto>? categories = [];
ImageUrls? logoUrl;
ImageUrls? imageUrl;
List<WearPriceProfileEsDto>? wearPriceProfiles = [];
List<PlaceSelectedBrandApiDto>? 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<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> 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<CategoryTreeApiDto>',context!);
logoUrl = JsonConverters.fromJson(json['logoUrl'],'ImageUrls',context!);
imageUrl = JsonConverters.fromJson(json['imageUrl'],'ImageUrls',context!);
wearPriceProfiles = JsonConverters.fromJson(json['wearPriceProfiles'],'List<WearPriceProfileEsDto>',context!);
brands = JsonConverters.fromJson(json['brands'],'List<PlaceSelectedBrandApiDto>',context!);
floor = json['floor'];
return this;
}
Map<String, dynamic> 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<CategoryTreeApiDto>',context!),
'logoUrl': JsonConverters.toJson(logoUrl,'ImageUrls',context!),
'imageUrl': JsonConverters.toJson(imageUrl,'ImageUrls',context!),
'wearPriceProfiles': JsonConverters.toJson(wearPriceProfiles,'List<WearPriceProfileEsDto>',context!),
'brands': JsonConverters.toJson(brands,'List<PlaceSelectedBrandApiDto>',context!),
'floor': floor
};
getTypeName() => "PlaceBasicApiDto";
TypeContext? context = _ctx;
}
class MallOtherServiceApiDto implements IConvertible
{
String? serviceName;
String? floor;
MallOtherServiceApiDto({this.serviceName,this.floor});
MallOtherServiceApiDto.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
serviceName = json['serviceName'];
floor = json['floor'];
return this;
}
Map<String, dynamic> toJson() => {
'serviceName': serviceName,
'floor': floor
};
getTypeName() => "MallOtherServiceApiDto";
TypeContext? context = _ctx;
}
class PlaceApiDto 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<CategoryTreeApiDto>? categories = [];
List<IndividualFeatureDataApiDto>? featureData = [];
List<BarSpecialityEsDto>? barSpecialities = [];
List<BarTypeEsDto>? barTypes = [];
List<PlaceSelectedBrandApiDto>? brands = [];
List<CuisineEsDto>? cuisines = [];
List<MealTypeApiDto>? mealTypes = [];
List<ParkingApiDto>? parking = [];
List<PaymentOptionApiDto>? paymentOptions = [];
List<EatingSuitabilityApiDto>? eatingSuitabilities = [];
List<TakeAwayApiDto>? takeAways = [];
List<WearPriceProfileEsDto>? wearPriceProfiles = [];
List<MenuEsDto>? menus = [];
ImageUrls? logoUrl;
ImageUrls? imageUrl;
bool? wheelchairAccessible;
bool? wifi;
bool? outdoorSeating;
bool? saveFoodAndMoney;
PlaceType? placeType;
PlaceBasicApiDto? mall;
PriceMainDishApiDto? priceMainDish;
List<PlaceBasicApiDto>? places = [];
List<MallOtherServiceApiDto>? otherServices = [];
String? floor;
TimeZoneDto? timeZoneDto;
int? businessId;
PlaceContact? contact;
PlaceAddress? address;
PlaceApiDto({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});
PlaceApiDto.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> 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<CategoryTreeApiDto>',context!);
featureData = JsonConverters.fromJson(json['featureData'],'List<IndividualFeatureDataApiDto>',context!);
barSpecialities = JsonConverters.fromJson(json['barSpecialities'],'List<BarSpecialityEsDto>',context!);
barTypes = JsonConverters.fromJson(json['barTypes'],'List<BarTypeEsDto>',context!);
brands = JsonConverters.fromJson(json['brands'],'List<PlaceSelectedBrandApiDto>',context!);
cuisines = JsonConverters.fromJson(json['cuisines'],'List<CuisineEsDto>',context!);
mealTypes = JsonConverters.fromJson(json['mealTypes'],'List<MealTypeApiDto>',context!);
parking = JsonConverters.fromJson(json['parking'],'List<ParkingApiDto>',context!);
paymentOptions = JsonConverters.fromJson(json['paymentOptions'],'List<PaymentOptionApiDto>',context!);
eatingSuitabilities = JsonConverters.fromJson(json['eatingSuitabilities'],'List<EatingSuitabilityApiDto>',context!);
takeAways = JsonConverters.fromJson(json['takeAways'],'List<TakeAwayApiDto>',context!);
wearPriceProfiles = JsonConverters.fromJson(json['wearPriceProfiles'],'List<WearPriceProfileEsDto>',context!);
menus = JsonConverters.fromJson(json['menus'],'List<MenuEsDto>',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'],'PlaceBasicApiDto',context!);
priceMainDish = JsonConverters.fromJson(json['priceMainDish'],'PriceMainDishApiDto',context!);
places = JsonConverters.fromJson(json['places'],'List<PlaceBasicApiDto>',context!);
otherServices = JsonConverters.fromJson(json['otherServices'],'List<MallOtherServiceApiDto>',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<String, dynamic> 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<CategoryTreeApiDto>',context!),
'featureData': JsonConverters.toJson(featureData,'List<IndividualFeatureDataApiDto>',context!),
'barSpecialities': JsonConverters.toJson(barSpecialities,'List<BarSpecialityEsDto>',context!),
'barTypes': JsonConverters.toJson(barTypes,'List<BarTypeEsDto>',context!),
'brands': JsonConverters.toJson(brands,'List<PlaceSelectedBrandApiDto>',context!),
'cuisines': JsonConverters.toJson(cuisines,'List<CuisineEsDto>',context!),
'mealTypes': JsonConverters.toJson(mealTypes,'List<MealTypeApiDto>',context!),
'parking': JsonConverters.toJson(parking,'List<ParkingApiDto>',context!),
'paymentOptions': JsonConverters.toJson(paymentOptions,'List<PaymentOptionApiDto>',context!),
'eatingSuitabilities': JsonConverters.toJson(eatingSuitabilities,'List<EatingSuitabilityApiDto>',context!),
'takeAways': JsonConverters.toJson(takeAways,'List<TakeAwayApiDto>',context!),
'wearPriceProfiles': JsonConverters.toJson(wearPriceProfiles,'List<WearPriceProfileEsDto>',context!),
'menus': JsonConverters.toJson(menus,'List<MenuEsDto>',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,'PlaceBasicApiDto',context!),
'priceMainDish': JsonConverters.toJson(priceMainDish,'PriceMainDishApiDto',context!),
'places': JsonConverters.toJson(places,'List<PlaceBasicApiDto>',context!),
'otherServices': JsonConverters.toJson(otherServices,'List<MallOtherServiceApiDto>',context!),
'floor': floor,
'timeZoneDto': JsonConverters.toJson(timeZoneDto,'TimeZoneDto',context!),
'businessId': businessId,
'contact': JsonConverters.toJson(contact,'PlaceContact',context!),
'address': JsonConverters.toJson(address,'PlaceAddress',context!)
};
getTypeName() => "PlaceApiDto";
TypeContext? context = _ctx;
}
enum SharingState
{
Teaser,
Awarded,
SelfShare,
Expired,
}
class SharePlaceLinkUsedResponse implements IConvertible
{
SharingUser? sharingUser;
PlaceApiDto? place;
SharingState? state;
SharePlaceLinkUsedResponse({this.sharingUser,this.place,this.state});
SharePlaceLinkUsedResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
sharingUser = JsonConverters.fromJson(json['sharingUser'],'SharingUser',context!);
place = JsonConverters.fromJson(json['place'],'PlaceApiDto',context!);
state = JsonConverters.fromJson(json['state'],'SharingState',context!);
return this;
}
Map<String, dynamic> toJson() => {
'sharingUser': JsonConverters.toJson(sharingUser,'SharingUser',context!),
'place': JsonConverters.toJson(place,'PlaceApiDto',context!),
'state': JsonConverters.toJson(state,'SharingState',context!)
};
getTypeName() => "SharePlaceLinkUsedResponse";
TypeContext? context = _ctx;
}
enum Locale
{
EnUs,
NbNo,
}
class SharePlaceLinkUsedRequest implements IPost, IConvertible
{
String? sharePlaceToken;
Locale? locale;
SharePlaceLinkUsedRequest({this.sharePlaceToken,this.locale});
SharePlaceLinkUsedRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
sharePlaceToken = json['sharePlaceToken'];
locale = JsonConverters.fromJson(json['locale'],'Locale',context!);
return this;
}
Map<String, dynamic> toJson() => {
'sharePlaceToken': sharePlaceToken,
'locale': JsonConverters.toJson(locale,'Locale',context!)
};
getTypeName() => "SharePlaceLinkUsedRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'ConsumerApi', types: <String, TypeInfo> {
'SharingUser': TypeInfo(TypeOf.Class, create:() => SharingUser()),
'OpeningHour': TypeInfo(TypeOf.Class, create:() => OpeningHour()),
'WeeklyOpeningHours': TypeInfo(TypeOf.Class, create:() => WeeklyOpeningHours()),
'OpeningHours': TypeInfo(TypeOf.Class, create:() => OpeningHours()),
'CategoryTreeApiDto': TypeInfo(TypeOf.Class, create:() => CategoryTreeApiDto()),
'List<CategoryTreeApiDto>': TypeInfo(TypeOf.Class, create:() => <CategoryTreeApiDto>[]),
'FeatureType': TypeInfo(TypeOf.Enum, enumValues:FeatureType.values),
'IndividualFeatureDataApiDto': TypeInfo(TypeOf.Class, create:() => IndividualFeatureDataApiDto()),
'BarSpecialityEsDto': TypeInfo(TypeOf.Class, create:() => BarSpecialityEsDto()),
'BarTypeEsDto': TypeInfo(TypeOf.Class, create:() => BarTypeEsDto()),
'BrandApiDto': TypeInfo(TypeOf.Class, create:() => BrandApiDto()),
'PlaceCustomBrandApiDto': TypeInfo(TypeOf.Class, create:() => PlaceCustomBrandApiDto()),
'PlaceSelectedBrandApiDto': TypeInfo(TypeOf.Class, create:() => PlaceSelectedBrandApiDto()),
'CuisineEsDto': TypeInfo(TypeOf.Class, create:() => CuisineEsDto()),
'MealTypeApiDto': TypeInfo(TypeOf.Class, create:() => MealTypeApiDto()),
'Parking': TypeInfo(TypeOf.Enum, enumValues:Parking.values),
'ParkingApiDto': TypeInfo(TypeOf.Class, create:() => ParkingApiDto()),
'PaymentOption': TypeInfo(TypeOf.Enum, enumValues:PaymentOption.values),
'PaymentOptionApiDto': TypeInfo(TypeOf.Class, create:() => PaymentOptionApiDto()),
'EatingSuitabilityApiDto': TypeInfo(TypeOf.Class, create:() => EatingSuitabilityApiDto()),
'TakeAwayApiDto': TypeInfo(TypeOf.Class, create:() => TakeAwayApiDto()),
'WearPriceProfileEsDto': TypeInfo(TypeOf.Class, create:() => WearPriceProfileEsDto()),
'MenuEsDto': TypeInfo(TypeOf.Class, create:() => MenuEsDto()),
'ImageUrls': TypeInfo(TypeOf.Class, create:() => ImageUrls()),
'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()),
'PlaceBasicApiDto': TypeInfo(TypeOf.Class, create:() => PlaceBasicApiDto()),
'List<WearPriceProfileEsDto>': TypeInfo(TypeOf.Class, create:() => <WearPriceProfileEsDto>[]),
'List<PlaceSelectedBrandApiDto>': TypeInfo(TypeOf.Class, create:() => <PlaceSelectedBrandApiDto>[]),
'MallOtherServiceApiDto': TypeInfo(TypeOf.Class, create:() => MallOtherServiceApiDto()),
'PlaceApiDto': TypeInfo(TypeOf.Class, create:() => PlaceApiDto()),
'List<IndividualFeatureDataApiDto>': TypeInfo(TypeOf.Class, create:() => <IndividualFeatureDataApiDto>[]),
'List<BarSpecialityEsDto>': TypeInfo(TypeOf.Class, create:() => <BarSpecialityEsDto>[]),
'List<BarTypeEsDto>': TypeInfo(TypeOf.Class, create:() => <BarTypeEsDto>[]),
'List<CuisineEsDto>': TypeInfo(TypeOf.Class, create:() => <CuisineEsDto>[]),
'List<MealTypeApiDto>': TypeInfo(TypeOf.Class, create:() => <MealTypeApiDto>[]),
'List<ParkingApiDto>': TypeInfo(TypeOf.Class, create:() => <ParkingApiDto>[]),
'List<PaymentOptionApiDto>': TypeInfo(TypeOf.Class, create:() => <PaymentOptionApiDto>[]),
'List<EatingSuitabilityApiDto>': TypeInfo(TypeOf.Class, create:() => <EatingSuitabilityApiDto>[]),
'List<TakeAwayApiDto>': TypeInfo(TypeOf.Class, create:() => <TakeAwayApiDto>[]),
'List<MenuEsDto>': TypeInfo(TypeOf.Class, create:() => <MenuEsDto>[]),
'List<PlaceBasicApiDto>': TypeInfo(TypeOf.Class, create:() => <PlaceBasicApiDto>[]),
'List<MallOtherServiceApiDto>': TypeInfo(TypeOf.Class, create:() => <MallOtherServiceApiDto>[]),
'SharingState': TypeInfo(TypeOf.Enum, enumValues:SharingState.values),
'SharePlaceLinkUsedResponse': TypeInfo(TypeOf.Class, create:() => SharePlaceLinkUsedResponse()),
'Locale': TypeInfo(TypeOf.Enum, enumValues:Locale.values),
'SharePlaceLinkUsedRequest': TypeInfo(TypeOf.Class, create:() => SharePlaceLinkUsedRequest()),
});
Dart SharePlaceLinkUsedRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /share/share-place-link-used HTTP/1.1
Host: unstable-consumer-api.brovs.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"sharePlaceToken":"String","locale":"EnUs"}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"sharingUser":{"firstName":"String","lastName":"String","profilePhotoUrl":"String"},"place":{"id":0,"overview":"String","name":"String","longitude":0,"latitude":0,"claimed":false,"organizationNumber":"String","countryCode":"String","placeState":"String","followersCount":0,"openingHours":{"weekly":{"monday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"tuesday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"wednesday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"thursday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"friday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"saturday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"sunday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0}}},"categories":[{"name":"String","slug":"String","absoluteSlug":"String","imageUrl":"String","allImageUrl":"String","iconImageUrl":"String","position":0,"children":[{"name":"String","slug":"String","absoluteSlug":"String","imageUrl":"String","allImageUrl":"String","iconImageUrl":"String","position":0,"children":[{"name":"String","slug":"String","absoluteSlug":"String","imageUrl":"String","allImageUrl":"String","iconImageUrl":"String","position":0}]}]}],"featureData":[{"slug":"BarSpeciality","label":"String"}],"barSpecialities":[{"slug":"String","title":"String"}],"barTypes":[{"slug":"String","title":"String"}],"brands":[{"brand":{"name":"String"},"categoryAbsoluteSlugs":["String"],"placeCustomBrand":{"name":"String"}}],"cuisines":[{"label":"String","slug":"String"}],"mealTypes":[{"label":"String","slug":"String"}],"parking":[{"label":"String","slug":"StreetParking"}],"paymentOptions":[{"label":"String","slug":"Visa"}],"eatingSuitabilities":[{"label":"String","slug":"String"}],"takeAways":[{"label":"String","slug":"String"}],"wearPriceProfiles":[{"slug":"String","label":"String"}],"menus":[{"name":"String","url":"String","position":0}],"logoUrl":{"preview":"String","small":"String","medium":"String","large":"String"},"imageUrl":{"preview":"String","small":"String","medium":"String","large":"String"},"wheelchairAccessible":false,"wifi":false,"outdoorSeating":false,"saveFoodAndMoney":false,"placeType":"Mall","mall":{"id":0,"overview":"String","name":"String","longitude":0,"latitude":0,"claimed":false,"organizationNumber":"String","countryCode":"String","openingHours":{"weekly":{"monday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"tuesday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"wednesday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"thursday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"friday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"saturday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"sunday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0}}},"wheelchairAccessible":false,"wifi":false,"outdoorSeating":false,"saveFoodAndMoney":false,"placeType":"Mall","priceMainDish":{"title":"String","slug":"Value"},"timeZoneDto":{"baseUtcOffset":"PT0S","daylightName":"String","displayName":"String","id":"String","standardName":"String","supportsDaylightSavingTime":false},"businessId":0,"contact":{"phone":"String","email":"String","website":"String","webShop":"String"},"address":{"street":"String","postalCode":"String","region":"String","countryCode":"String"},"categories":[{"name":"String","slug":"String","absoluteSlug":"String","imageUrl":"String","allImageUrl":"String","iconImageUrl":"String","position":0,"children":[{"name":"String","slug":"String","absoluteSlug":"String","imageUrl":"String","allImageUrl":"String","iconImageUrl":"String","position":0,"children":[{"name":"String","slug":"String","absoluteSlug":"String","imageUrl":"String","allImageUrl":"String","iconImageUrl":"String","position":0}]}]}],"logoUrl":{"preview":"String","small":"String","medium":"String","large":"String"},"imageUrl":{"preview":"String","small":"String","medium":"String","large":"String"},"wearPriceProfiles":[{"slug":"String","label":"String"}],"brands":[{"brand":{"name":"String"},"categoryAbsoluteSlugs":["String"],"placeCustomBrand":{"name":"String"}}],"floor":"String"},"priceMainDish":{"title":"String","slug":"Value"},"places":[{"id":0,"overview":"String","name":"String","longitude":0,"latitude":0,"claimed":false,"organizationNumber":"String","countryCode":"String","openingHours":{"weekly":{"monday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"tuesday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"wednesday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"thursday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"friday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"saturday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0},"sunday":{"openAtHour":0,"openAtMinute":0,"closeAtHour":0,"closeAtMinute":0}}},"wheelchairAccessible":false,"wifi":false,"outdoorSeating":false,"saveFoodAndMoney":false,"placeType":"Mall","priceMainDish":{"title":"String","slug":"Value"},"timeZoneDto":{"baseUtcOffset":"PT0S","daylightName":"String","displayName":"String","id":"String","standardName":"String","supportsDaylightSavingTime":false},"businessId":0,"contact":{"phone":"String","email":"String","website":"String","webShop":"String"},"address":{"street":"String","postalCode":"String","region":"String","countryCode":"String"},"categories":[{"name":"String","slug":"String","absoluteSlug":"String","imageUrl":"String","allImageUrl":"String","iconImageUrl":"String","position":0,"children":[{"name":"String","slug":"String","absoluteSlug":"String","imageUrl":"String","allImageUrl":"String","iconImageUrl":"String","position":0,"children":[{"name":"String","slug":"String","absoluteSlug":"String","imageUrl":"String","allImageUrl":"String","iconImageUrl":"String","position":0}]}]}],"logoUrl":{"preview":"String","small":"String","medium":"String","large":"String"},"imageUrl":{"preview":"String","small":"String","medium":"String","large":"String"},"wearPriceProfiles":[{"slug":"String","label":"String"}],"brands":[{"brand":{"name":"String"},"categoryAbsoluteSlugs":["String"],"placeCustomBrand":{"name":"String"}}],"floor":"String"}],"otherServices":[{"serviceName":"String","floor":"String"}],"floor":"String","timeZoneDto":{"baseUtcOffset":"PT0S","daylightName":"String","displayName":"String","id":"String","standardName":"String","supportsDaylightSavingTime":false},"businessId":0,"contact":{"phone":"String","email":"String","website":"String","webShop":"String"},"address":{"street":"String","postalCode":"String","region":"String","countryCode":"String"}},"state":"Teaser"}