/* Options: Date: 2026-02-11 02:29:33 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api-staging.bookmore.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateBookings.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class AddCustomField implements IConvertible { int Id = 0; String Value = ""; AddCustomField({this.Id,this.Value}); AddCustomField.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Value = json['Value']; return this; } Map toJson() => { 'Id': Id, 'Value': Value }; getTypeName() => "AddCustomField"; TypeContext? context = _ctx; } enum PaymentOptions { DefaultSetting, BookWithoutPayment, BookWithPaymentMessageToCustomer, BookWithManualPayment, } class DatesToRepeat implements IInterval, IConvertible { /** * Booking start */ // @ApiMember(Description="Booking start") DateTime From = DateTime(0); /** * Booking end */ // @ApiMember(Description="Booking end") DateTime To = DateTime(0); /** * Set the number of spots you want to book. You add number of spots per price category. Multiple spots require that the service has GroupBooking enabled. Default is one spot. */ // @ApiMember(Description="Set the number of spots you want to book. You add number of spots per price category. Multiple spots require that the service has GroupBooking enabled. Default is one spot.") List Quantities = []; DatesToRepeat({this.From,this.To,this.Quantities}); DatesToRepeat.fromJson(Map json) { fromMap(json); } fromMap(Map json) { From = JsonConverters.fromJson(json['From'],'DateTime',context!); To = JsonConverters.fromJson(json['To'],'DateTime',context!); Quantities = JsonConverters.fromJson(json['Quantities'],'List',context!); return this; } Map toJson() => { 'From': JsonConverters.toJson(From,'DateTime',context!), 'To': JsonConverters.toJson(To,'DateTime',context!), 'Quantities': JsonConverters.toJson(Quantities,'List',context!) }; getTypeName() => "DatesToRepeat"; TypeContext? context = _ctx; } class CustomerBase implements ICustomerBase, IConvertible { String? CustomerId; String Firstname = ""; String Lastname = ""; String Email = ""; String Phone = ""; bool SubscribedToNewsletter; String PersonalIdentityNumber = ""; CustomerBase({this.CustomerId,this.Firstname,this.Lastname,this.Email,this.Phone,this.SubscribedToNewsletter,this.PersonalIdentityNumber}); CustomerBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CustomerId = json['CustomerId']; Firstname = json['Firstname']; Lastname = json['Lastname']; Email = json['Email']; Phone = json['Phone']; SubscribedToNewsletter = json['SubscribedToNewsletter']; PersonalIdentityNumber = json['PersonalIdentityNumber']; return this; } Map toJson() => { 'CustomerId': CustomerId, 'Firstname': Firstname, 'Lastname': Lastname, 'Email': Email, 'Phone': Phone, 'SubscribedToNewsletter': SubscribedToNewsletter, 'PersonalIdentityNumber': PersonalIdentityNumber }; getTypeName() => "CustomerBase"; TypeContext? context = _ctx; } class CustomerToHandle extends CustomerBase implements IConvertible { CustomerToHandle(); CustomerToHandle.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "CustomerToHandle"; TypeContext? context = _ctx; } class InvoiceAddressToHandle implements IInvoiceAddress, IConvertible { String CorporateIdentityNumber = ""; String InvoiceAddress1 = ""; String InvoiceAddress2 = ""; String InvoiceCity = ""; String InvoicePostalCode = ""; String InvoiceCountryCode = ""; InvoiceAddressToHandle({this.CorporateIdentityNumber,this.InvoiceAddress1,this.InvoiceAddress2,this.InvoiceCity,this.InvoicePostalCode,this.InvoiceCountryCode}); InvoiceAddressToHandle.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CorporateIdentityNumber = json['CorporateIdentityNumber']; InvoiceAddress1 = json['InvoiceAddress1']; InvoiceAddress2 = json['InvoiceAddress2']; InvoiceCity = json['InvoiceCity']; InvoicePostalCode = json['InvoicePostalCode']; InvoiceCountryCode = json['InvoiceCountryCode']; return this; } Map toJson() => { 'CorporateIdentityNumber': CorporateIdentityNumber, 'InvoiceAddress1': InvoiceAddress1, 'InvoiceAddress2': InvoiceAddress2, 'InvoiceCity': InvoiceCity, 'InvoicePostalCode': InvoicePostalCode, 'InvoiceCountryCode': InvoiceCountryCode }; getTypeName() => "InvoiceAddressToHandle"; TypeContext? context = _ctx; } class ResourceToBook implements IConvertible { int ResourceTypeId = 0; int ResourceId = 0; ResourceToBook({this.ResourceTypeId,this.ResourceId}); ResourceToBook.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResourceTypeId = json['ResourceTypeId']; ResourceId = json['ResourceId']; return this; } Map toJson() => { 'ResourceTypeId': ResourceTypeId, 'ResourceId': ResourceId }; getTypeName() => "ResourceToBook"; TypeContext? context = _ctx; } class CreateBookingBase implements ICreateBookingBase, IConvertible { /** * The company id, if empty will use the company id for the user you are logged in with. */ // @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.") String? CompanyId; /** * If you want to book on an existing customer instead of CustomerToBook info set the CustomerId here. Set Empty Guid (00000000-0000-0000-0000-000000000000) if you want to book without any customer, this is only allowed by admin. The customer id is shown in the customer list named as id. When booking as customer (no admin) leave this field blank. */ // @ApiMember(Description="If you want to book on an existing customer instead of CustomerToBook info set the CustomerId here. Set Empty Guid (00000000-0000-0000-0000-000000000000) if you want to book without any customer, this is only allowed by admin. The customer id is shown in the customer list named as id. When booking as customer (no admin) leave this field blank.") String? CustomerId; /** * If company requires to be authenticated or a pin code entered to book on a specific customer, enter it here. */ // @ApiMember(Description="If company requires to be authenticated or a pin code entered to book on a specific customer, enter it here.") String PinCode = ""; /** * If you want to book with customer information instead of the Customer Id send the customer information here. Note: If customer profile already exists with the same email the information will not be changed, instead the provided information will be added as BookingsComments if it differs from the ordinary profile. */ // @ApiMember(Description="If you want to book with customer information instead of the Customer Id send the customer information here. Note: If customer profile already exists with the same email the information will not be changed, instead the provided information will be added as BookingsComments if it differs from the ordinary profile. ") CustomerToHandle Customer; /** * If you want to book with customer information instead of the Customer Id send the customer information here. Note: If customer profile already exists with the same email the information will not be changed, instead the provided information will be added as BookingsComments if it differs from the ordinary profile. */ // @ApiMember(Description="If you want to book with customer information instead of the Customer Id send the customer information here. Note: If customer profile already exists with the same email the information will not be changed, instead the provided information will be added as BookingsComments if it differs from the ordinary profile. ") InvoiceAddressToHandle InvoiceAddress; /** * The service to be booked */ // @ApiMember(Description="The service to be booked", IsRequired=true) int ServiceId = 0; /** * If you want to add comments to a booking you can add them here, this comments are never shared with the customer */ // @ApiMember(Description="If you want to add comments to a booking you can add them here, this comments are never shared with the customer") String BookedComments = ""; /** * If you want to add comments to the booking that is sent to the customer, you can add them here. Comments will be sent in the booking confirmation */ // @ApiMember(Description="If you want to add comments to the booking that is sent to the customer, you can add them here. Comments will be sent in the booking confirmation") String CommentsToCustomer = ""; List Resources = []; /** * Rebate codes applied to booking */ // @ApiMember(Description="Rebate codes applied to booking") List? RebateCodeIds; /** * If you want to send Email reminder */ // @ApiMember(Description="If you want to send Email reminder") bool? SendEmailReminder; /** * If you want to send SMS reminder */ // @ApiMember(Description="If you want to send SMS reminder") bool? SendSmsReminder; /** * If you want to send SMS confirmation */ // @ApiMember(Description="If you want to send SMS confirmation") bool? SendSmsConfirmation; /** * Only admins are allowed to not send an email confirmation. Default is true */ // @ApiMember(Description="Only admins are allowed to not send an email confirmation. Default is true") bool? SendEmailConfirmation; /** * If payment is enabled and you're an administrator, optional to choose payment option, if empty then the default settings will be used. Following payment options exists. DefaultSetting = 0, BookWithoutPayment = 1 (will be direcyly booked without payment), BookWithPaymentMessageToCustomer = 2 (will set status AwaitingPayment and send payment instructions to customer), BookWithManualPayment = 3 (Will set status AwaitingPaymentNoTimeLimit and Admin will need to manually mark the booking as payed when recieved payment). */ // @ApiMember(Description="If payment is enabled and you're an administrator, optional to choose payment option, if empty then the default settings will be used. Following payment options exists. DefaultSetting = 0, BookWithoutPayment = 1 (will be direcyly booked without payment), BookWithPaymentMessageToCustomer = 2 (will set status AwaitingPayment and send payment instructions to customer), BookWithManualPayment = 3 (Will set status AwaitingPaymentNoTimeLimit and Admin will need to manually mark the booking as payed when recieved payment).") PaymentOptions PaymentOption; /** * If Custom Fields are added to the booking, here you will send the id and the value for each custom field to be saved */ // @ApiMember(Description="If Custom Fields are added to the booking, here you will send the id and the value for each custom field to be saved") List CustomFields = []; /** * If Custom Fields are added to the customer, here you will send the id and the value for each custom field to be updated */ // @ApiMember(Description="If Custom Fields are added to the customer, here you will send the id and the value for each custom field to be updated") List CustomerCustomFields = []; /** * If want to allow to book outside the service schedules. This means you can book a time after the schedule opening hours as long as the resource are available. This is only allowed by administrators */ // @ApiMember(Description="If want to allow to book outside the service schedules. This means you can book a time after the schedule opening hours as long as the resource are available. This is only allowed by administrators") bool AllowBookingOutsideSchedules; CreateBookingBase({this.CompanyId,this.CustomerId,this.PinCode,this.Customer,this.InvoiceAddress,this.ServiceId,this.BookedComments,this.CommentsToCustomer,this.Resources,this.RebateCodeIds,this.SendEmailReminder,this.SendSmsReminder,this.SendSmsConfirmation,this.SendEmailConfirmation,this.PaymentOption,this.CustomFields,this.CustomerCustomFields,this.AllowBookingOutsideSchedules}); CreateBookingBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; CustomerId = json['CustomerId']; PinCode = json['PinCode']; Customer = JsonConverters.fromJson(json['Customer'],'CustomerToHandle',context!); InvoiceAddress = JsonConverters.fromJson(json['InvoiceAddress'],'InvoiceAddressToHandle',context!); ServiceId = json['ServiceId']; BookedComments = json['BookedComments']; CommentsToCustomer = json['CommentsToCustomer']; Resources = JsonConverters.fromJson(json['Resources'],'List',context!); RebateCodeIds = JsonConverters.fromJson(json['RebateCodeIds'],'List',context!); SendEmailReminder = json['SendEmailReminder']; SendSmsReminder = json['SendSmsReminder']; SendSmsConfirmation = json['SendSmsConfirmation']; SendEmailConfirmation = json['SendEmailConfirmation']; PaymentOption = JsonConverters.fromJson(json['PaymentOption'],'PaymentOptions',context!); CustomFields = JsonConverters.fromJson(json['CustomFields'],'List',context!); CustomerCustomFields = JsonConverters.fromJson(json['CustomerCustomFields'],'List',context!); AllowBookingOutsideSchedules = json['AllowBookingOutsideSchedules']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'CustomerId': CustomerId, 'PinCode': PinCode, 'Customer': JsonConverters.toJson(Customer,'CustomerToHandle',context!), 'InvoiceAddress': JsonConverters.toJson(InvoiceAddress,'InvoiceAddressToHandle',context!), 'ServiceId': ServiceId, 'BookedComments': BookedComments, 'CommentsToCustomer': CommentsToCustomer, 'Resources': JsonConverters.toJson(Resources,'List',context!), 'RebateCodeIds': JsonConverters.toJson(RebateCodeIds,'List',context!), 'SendEmailReminder': SendEmailReminder, 'SendSmsReminder': SendSmsReminder, 'SendSmsConfirmation': SendSmsConfirmation, 'SendEmailConfirmation': SendEmailConfirmation, 'PaymentOption': JsonConverters.toJson(PaymentOption,'PaymentOptions',context!), 'CustomFields': JsonConverters.toJson(CustomFields,'List',context!), 'CustomerCustomFields': JsonConverters.toJson(CustomerCustomFields,'List',context!), 'AllowBookingOutsideSchedules': AllowBookingOutsideSchedules }; getTypeName() => "CreateBookingBase"; TypeContext? context = _ctx; } abstract class ICreateBookingBase { String? CompanyId; String? CustomerId; String PinCode = ""; CustomerToHandle Customer; InvoiceAddressToHandle InvoiceAddress; int ServiceId = 0; String BookedComments = ""; String CommentsToCustomer = ""; List Resources = []; List RebateCodeIds = []; bool? SendEmailReminder; bool? SendSmsReminder; bool? SendSmsConfirmation; bool? SendEmailConfirmation; PaymentOptions PaymentOption; List CustomFields = []; List CustomerCustomFields = []; bool AllowBookingOutsideSchedules; } abstract class IInterval { DateTime From = DateTime(0); DateTime To = DateTime(0); } abstract class ICustomerBase { String? CustomerId; String Firstname = ""; String Lastname = ""; String Email = ""; String Phone = ""; bool SubscribedToNewsletter; String PersonalIdentityNumber = ""; } class FailedBookings implements IConvertible { DateTime From = DateTime(0); DateTime To = DateTime(0); String Reason = ""; /** * Set the number of spots you want to book. You add number of spots per price category. Multiple spots require that the service has GroupBooking enabled. Default is one spot. */ // @ApiMember(Description="Set the number of spots you want to book. You add number of spots per price category. Multiple spots require that the service has GroupBooking enabled. Default is one spot.") List Quantities = []; FailedBookings({this.From,this.To,this.Reason,this.Quantities}); FailedBookings.fromJson(Map json) { fromMap(json); } fromMap(Map json) { From = JsonConverters.fromJson(json['From'],'DateTime',context!); To = JsonConverters.fromJson(json['To'],'DateTime',context!); Reason = json['Reason']; Quantities = JsonConverters.fromJson(json['Quantities'],'List',context!); return this; } Map toJson() => { 'From': JsonConverters.toJson(From,'DateTime',context!), 'To': JsonConverters.toJson(To,'DateTime',context!), 'Reason': Reason, 'Quantities': JsonConverters.toJson(Quantities,'List',context!) }; getTypeName() => "FailedBookings"; TypeContext? context = _ctx; } abstract class IInvoiceAddress { String CorporateIdentityNumber = ""; String InvoiceAddress1 = ""; String InvoiceAddress2 = ""; String InvoiceCity = ""; String InvoicePostalCode = ""; String InvoiceCountryCode = ""; } class BookingQueryResponse implements IConvertible { int Id = 0; String CompanyId = ""; DateTime From = DateTime(0); DateTime To = DateTime(0); BookingStatusEnum Status; int StatusId = 0; String StatusName = ""; BookingStatusQueryResponse StatusInfo; bool SendEmailReminder; bool SendSmsReminder; bool SendSmsConfirmation; bool SendEmailConfirmation; DateTime? LastTimeToUnBook; List CustomFields = []; List CustomFieldValues = []; List BookedResourceTypes = []; BookedCompany Company; BookedCustomer Customer; List Quantities = []; ServiceInfoResponse Service; InvoiceAddressResponse InvoiceAddress; DateTime? PaymentExpiration; List Log = []; List PaymentLog = []; List CheckoutLog = []; List ExternalReference = []; ResponseStatus ResponseStatus; int? LengthInMinutes; String BookedBy = ""; String BookedComments = ""; String UnbookedComments = ""; String CommentsToCustomer = ""; DateTime CreatedDate = DateTime(0); DateTime UpdatedDate = DateTime(0); DateTime? UnbookedOn; String CancellationCode = ""; String RatingCode = ""; BookingQueryResponse({this.Id,this.CompanyId,this.From,this.To,this.Status,this.StatusId,this.StatusName,this.StatusInfo,this.SendEmailReminder,this.SendSmsReminder,this.SendSmsConfirmation,this.SendEmailConfirmation,this.LastTimeToUnBook,this.CustomFields,this.CustomFieldValues,this.BookedResourceTypes,this.Company,this.Customer,this.Quantities,this.Service,this.InvoiceAddress,this.PaymentExpiration,this.Log,this.PaymentLog,this.CheckoutLog,this.ExternalReference,this.ResponseStatus,this.LengthInMinutes,this.BookedBy,this.BookedComments,this.UnbookedComments,this.CommentsToCustomer,this.CreatedDate,this.UpdatedDate,this.UnbookedOn,this.CancellationCode,this.RatingCode}); BookingQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; CompanyId = json['CompanyId']; From = JsonConverters.fromJson(json['From'],'DateTime',context!); To = JsonConverters.fromJson(json['To'],'DateTime',context!); Status = JsonConverters.fromJson(json['Status'],'BookingStatusEnum',context!); StatusId = json['StatusId']; StatusName = json['StatusName']; StatusInfo = JsonConverters.fromJson(json['StatusInfo'],'BookingStatusQueryResponse',context!); SendEmailReminder = json['SendEmailReminder']; SendSmsReminder = json['SendSmsReminder']; SendSmsConfirmation = json['SendSmsConfirmation']; SendEmailConfirmation = json['SendEmailConfirmation']; LastTimeToUnBook = JsonConverters.fromJson(json['LastTimeToUnBook'],'DateTime',context!); CustomFields = JsonConverters.fromJson(json['CustomFields'],'List',context!); CustomFieldValues = JsonConverters.fromJson(json['CustomFieldValues'],'List',context!); BookedResourceTypes = JsonConverters.fromJson(json['BookedResourceTypes'],'List',context!); Company = JsonConverters.fromJson(json['Company'],'BookedCompany',context!); Customer = JsonConverters.fromJson(json['Customer'],'BookedCustomer',context!); Quantities = JsonConverters.fromJson(json['Quantities'],'List',context!); Service = JsonConverters.fromJson(json['Service'],'ServiceInfoResponse',context!); InvoiceAddress = JsonConverters.fromJson(json['InvoiceAddress'],'InvoiceAddressResponse',context!); PaymentExpiration = JsonConverters.fromJson(json['PaymentExpiration'],'DateTime',context!); Log = JsonConverters.fromJson(json['Log'],'List',context!); PaymentLog = JsonConverters.fromJson(json['PaymentLog'],'List',context!); CheckoutLog = JsonConverters.fromJson(json['CheckoutLog'],'List',context!); ExternalReference = JsonConverters.fromJson(json['ExternalReference'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); LengthInMinutes = json['LengthInMinutes']; BookedBy = json['BookedBy']; BookedComments = json['BookedComments']; UnbookedComments = json['UnbookedComments']; CommentsToCustomer = json['CommentsToCustomer']; CreatedDate = JsonConverters.fromJson(json['CreatedDate'],'DateTime',context!); UpdatedDate = JsonConverters.fromJson(json['UpdatedDate'],'DateTime',context!); UnbookedOn = JsonConverters.fromJson(json['UnbookedOn'],'DateTime',context!); CancellationCode = json['CancellationCode']; RatingCode = json['RatingCode']; return this; } Map toJson() => { 'Id': Id, 'CompanyId': CompanyId, 'From': JsonConverters.toJson(From,'DateTime',context!), 'To': JsonConverters.toJson(To,'DateTime',context!), 'Status': JsonConverters.toJson(Status,'BookingStatusEnum',context!), 'StatusId': StatusId, 'StatusName': StatusName, 'StatusInfo': JsonConverters.toJson(StatusInfo,'BookingStatusQueryResponse',context!), 'SendEmailReminder': SendEmailReminder, 'SendSmsReminder': SendSmsReminder, 'SendSmsConfirmation': SendSmsConfirmation, 'SendEmailConfirmation': SendEmailConfirmation, 'LastTimeToUnBook': JsonConverters.toJson(LastTimeToUnBook,'DateTime',context!), 'CustomFields': JsonConverters.toJson(CustomFields,'List',context!), 'CustomFieldValues': JsonConverters.toJson(CustomFieldValues,'List',context!), 'BookedResourceTypes': JsonConverters.toJson(BookedResourceTypes,'List',context!), 'Company': JsonConverters.toJson(Company,'BookedCompany',context!), 'Customer': JsonConverters.toJson(Customer,'BookedCustomer',context!), 'Quantities': JsonConverters.toJson(Quantities,'List',context!), 'Service': JsonConverters.toJson(Service,'ServiceInfoResponse',context!), 'InvoiceAddress': JsonConverters.toJson(InvoiceAddress,'InvoiceAddressResponse',context!), 'PaymentExpiration': JsonConverters.toJson(PaymentExpiration,'DateTime',context!), 'Log': JsonConverters.toJson(Log,'List',context!), 'PaymentLog': JsonConverters.toJson(PaymentLog,'List',context!), 'CheckoutLog': JsonConverters.toJson(CheckoutLog,'List',context!), 'ExternalReference': JsonConverters.toJson(ExternalReference,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'LengthInMinutes': LengthInMinutes, 'BookedBy': BookedBy, 'BookedComments': BookedComments, 'UnbookedComments': UnbookedComments, 'CommentsToCustomer': CommentsToCustomer, 'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!), 'UpdatedDate': JsonConverters.toJson(UpdatedDate,'DateTime',context!), 'UnbookedOn': JsonConverters.toJson(UnbookedOn,'DateTime',context!), 'CancellationCode': CancellationCode, 'RatingCode': RatingCode }; getTypeName() => "BookingQueryResponse"; TypeContext? context = _ctx; } class CreateBookingsResponse implements IConvertible { /** * The datetime you want to end the booking. */ // @ApiMember(Description="The datetime you want to end the booking.", IsRequired=true) List Created = []; /** * The dates that didn't work to book. */ // @ApiMember(Description="The dates that didn't work to book.", IsRequired=true) List Failed = []; ResponseStatus ResponseStatus; CreateBookingsResponse({this.Created,this.Failed,this.ResponseStatus}); CreateBookingsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Created = JsonConverters.fromJson(json['Created'],'List',context!); Failed = JsonConverters.fromJson(json['Failed'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Created': JsonConverters.toJson(Created,'List',context!), 'Failed': JsonConverters.toJson(Failed,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "CreateBookingsResponse"; TypeContext? context = _ctx; } // @Route("/bookings/repeat", "POST") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) class CreateBookings extends CreateBookingBase implements IReturn, IConvertible, IPost { /** * Set the dates you want to book and it's quantities. It's an array of dates and quantities. */ // @ApiMember(DataType="List", Description="Set the dates you want to book and it's quantities. It's an array of dates and quantities.", IsRequired=true) List DatesToRepeat = []; CreateBookings({this.DatesToRepeat}); CreateBookings.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); DatesToRepeat = JsonConverters.fromJson(json['DatesToRepeat'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'DatesToRepeat': JsonConverters.toJson(DatesToRepeat,'List',context!) }); createResponse() => CreateBookingsResponse(); getResponseTypeName() => "CreateBookingsResponse"; getTypeName() => "CreateBookings"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api_staging.bookmore.com', types: { 'AddCustomField': TypeInfo(TypeOf.Class, create:() => AddCustomField()), 'PaymentOptions': TypeInfo(TypeOf.Enum, enumValues:PaymentOptions.values), 'DatesToRepeat': TypeInfo(TypeOf.Class, create:() => DatesToRepeat()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'QuantityToBook': TypeInfo(TypeOf.Class, create:() => QuantityToBook()), 'CustomerBase': TypeInfo(TypeOf.Class, create:() => CustomerBase()), 'CustomerToHandle': TypeInfo(TypeOf.Class, create:() => CustomerToHandle()), 'InvoiceAddressToHandle': TypeInfo(TypeOf.Class, create:() => InvoiceAddressToHandle()), 'ResourceToBook': TypeInfo(TypeOf.Class, create:() => ResourceToBook()), 'CreateBookingBase': TypeInfo(TypeOf.Class, create:() => CreateBookingBase()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ICreateBookingBase': TypeInfo(TypeOf.Interface), 'IInterval': TypeInfo(TypeOf.Interface), 'ICustomerBase': TypeInfo(TypeOf.Interface), 'FailedBookings': TypeInfo(TypeOf.Class, create:() => FailedBookings()), 'IInvoiceAddress': TypeInfo(TypeOf.Interface), 'BookingQueryResponse': TypeInfo(TypeOf.Class, create:() => BookingQueryResponse()), 'BookingStatusEnum': TypeInfo(TypeOf.Class, create:() => BookingStatusEnum()), 'BookingStatusQueryResponse': TypeInfo(TypeOf.Class, create:() => BookingStatusQueryResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CustomFieldConfigData': TypeInfo(TypeOf.Class, create:() => CustomFieldConfigData()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CustomFieldDataResponse': TypeInfo(TypeOf.Class, create:() => CustomFieldDataResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'BookedResourceType': TypeInfo(TypeOf.Class, create:() => BookedResourceType()), 'BookedCompany': TypeInfo(TypeOf.Class, create:() => BookedCompany()), 'BookedCustomer': TypeInfo(TypeOf.Class, create:() => BookedCustomer()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'BookedQuantity': TypeInfo(TypeOf.Class, create:() => BookedQuantity()), 'ServiceInfoResponse': TypeInfo(TypeOf.Class, create:() => ServiceInfoResponse()), 'InvoiceAddressResponse': TypeInfo(TypeOf.Class, create:() => InvoiceAddressResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'BookingLogQueryResponse': TypeInfo(TypeOf.Class, create:() => BookingLogQueryResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'BookingPaymentLogQueryResponse': TypeInfo(TypeOf.Class, create:() => BookingPaymentLogQueryResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'BookingCheckoutQueryResponse': TypeInfo(TypeOf.Class, create:() => BookingCheckoutQueryResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ExternalReferenceResponse': TypeInfo(TypeOf.Class, create:() => ExternalReferenceResponse()), 'CreateBookingsResponse': TypeInfo(TypeOf.Class, create:() => CreateBookingsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CreateBookings': TypeInfo(TypeOf.Class, create:() => CreateBookings()), 'List': TypeInfo(TypeOf.Class, create:() => []), });