/* Options: Date: 2024-07-03 12:58:25 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetAllBookingQueueForUser.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class BookingUserQueueItemResponse implements IConvertible { int? BookingUserQueueId; String? CompanyId; String? CustomerId; int? ServiceId; DateTime? From; DateTime? To; int? StatusCode; String? StatusName; DateTime? SendConfirmationTime; List? Quantities; ServiceInfoResponse? Service; CompanyInfoResponse? Company; BookingUserQueueItemResponse({this.BookingUserQueueId,this.CompanyId,this.CustomerId,this.ServiceId,this.From,this.To,this.StatusCode,this.StatusName,this.SendConfirmationTime,this.Quantities,this.Service,this.Company}); BookingUserQueueItemResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { BookingUserQueueId = json['BookingUserQueueId']; CompanyId = json['CompanyId']; CustomerId = json['CustomerId']; ServiceId = json['ServiceId']; From = JsonConverters.fromJson(json['From'],'DateTime',context!); To = JsonConverters.fromJson(json['To'],'DateTime',context!); StatusCode = json['StatusCode']; StatusName = json['StatusName']; SendConfirmationTime = JsonConverters.fromJson(json['SendConfirmationTime'],'DateTime',context!); Quantities = JsonConverters.fromJson(json['Quantities'],'List',context!); Service = JsonConverters.fromJson(json['Service'],'ServiceInfoResponse',context!); Company = JsonConverters.fromJson(json['Company'],'CompanyInfoResponse',context!); return this; } Map toJson() => { 'BookingUserQueueId': BookingUserQueueId, 'CompanyId': CompanyId, 'CustomerId': CustomerId, 'ServiceId': ServiceId, 'From': JsonConverters.toJson(From,'DateTime',context!), 'To': JsonConverters.toJson(To,'DateTime',context!), 'StatusCode': StatusCode, 'StatusName': StatusName, 'SendConfirmationTime': JsonConverters.toJson(SendConfirmationTime,'DateTime',context!), 'Quantities': JsonConverters.toJson(Quantities,'List',context!), 'Service': JsonConverters.toJson(Service,'ServiceInfoResponse',context!), 'Company': JsonConverters.toJson(Company,'CompanyInfoResponse',context!) }; getTypeName() => "BookingUserQueueItemResponse"; TypeContext? context = _ctx; } class GetAllBookingQueueForUserResponse implements IConvertible { List? BookingUserQueueResponseList; ResponseStatus? ResponseStatus; GetAllBookingQueueForUserResponse({this.BookingUserQueueResponseList,this.ResponseStatus}); GetAllBookingQueueForUserResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { BookingUserQueueResponseList = JsonConverters.fromJson(json['BookingUserQueueResponseList'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'BookingUserQueueResponseList': JsonConverters.toJson(BookingUserQueueResponseList,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "GetAllBookingQueueForUserResponse"; TypeContext? context = _ctx; } // @Route("/bookinguserqueue/user", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") class GetAllBookingQueueForUser implements IReturn, IConvertible, IGet { /** * The user id for your profile. If not set it will set it automatically from your session */ // @ApiMember(Description="The user id for your profile. If not set it will set it automatically from your session") String? UserId; DateTime? DateStart; DateTime? DateEnd; /** * If you want to include the service information for the booking */ // @ApiMember(DataType="boolean", Description="If you want to include the service information for the booking", ParameterType="query") bool? IncludeServiceInformation; /** * If you want to include the company information for the booking */ // @ApiMember(DataType="boolean", Description="If you want to include the company information for the booking", ParameterType="query") bool? IncludeCompanyInformation; GetAllBookingQueueForUser({this.UserId,this.DateStart,this.DateEnd,this.IncludeServiceInformation,this.IncludeCompanyInformation}); GetAllBookingQueueForUser.fromJson(Map json) { fromMap(json); } fromMap(Map json) { UserId = json['UserId']; DateStart = JsonConverters.fromJson(json['DateStart'],'DateTime',context!); DateEnd = JsonConverters.fromJson(json['DateEnd'],'DateTime',context!); IncludeServiceInformation = json['IncludeServiceInformation']; IncludeCompanyInformation = json['IncludeCompanyInformation']; return this; } Map toJson() => { 'UserId': UserId, 'DateStart': JsonConverters.toJson(DateStart,'DateTime',context!), 'DateEnd': JsonConverters.toJson(DateEnd,'DateTime',context!), 'IncludeServiceInformation': IncludeServiceInformation, 'IncludeCompanyInformation': IncludeCompanyInformation }; createResponse() => GetAllBookingQueueForUserResponse(); getResponseTypeName() => "GetAllBookingQueueForUserResponse"; getTypeName() => "GetAllBookingQueueForUser"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'BookingUserQueueItemResponse': TypeInfo(TypeOf.Class, create:() => BookingUserQueueItemResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'BookingUserQueuePriceResponse': TypeInfo(TypeOf.Class, create:() => BookingUserQueuePriceResponse()), 'ServiceInfoResponse': TypeInfo(TypeOf.Class, create:() => ServiceInfoResponse()), 'CompanyInfoResponse': TypeInfo(TypeOf.Class, create:() => CompanyInfoResponse()), 'GetAllBookingQueueForUserResponse': TypeInfo(TypeOf.Class, create:() => GetAllBookingQueueForUserResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetAllBookingQueueForUser': TypeInfo(TypeOf.Class, create:() => GetAllBookingQueueForUser()), });