/* Options: Date: 2024-11-21 11:35:59 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: GetAllBookingQueueForAdmin.* //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/company", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") class GetAllBookingQueueForAdmin implements IReturn, IConvertible, IGet { String? CompanyId; int? ServiceId; DateTime? DateStart; DateTime? DateEnd; GetAllBookingQueueForAdmin({this.CompanyId,this.ServiceId,this.DateStart,this.DateEnd}); GetAllBookingQueueForAdmin.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; ServiceId = json['ServiceId']; DateStart = JsonConverters.fromJson(json['DateStart'],'DateTime',context!); DateEnd = JsonConverters.fromJson(json['DateEnd'],'DateTime',context!); return this; } Map toJson() => { 'CompanyId': CompanyId, 'ServiceId': ServiceId, 'DateStart': JsonConverters.toJson(DateStart,'DateTime',context!), 'DateEnd': JsonConverters.toJson(DateEnd,'DateTime',context!) }; createResponse() => GetAllBookingQueueForUserResponse(); getResponseTypeName() => "GetAllBookingQueueForUserResponse"; getTypeName() => "GetAllBookingQueueForAdmin"; 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:() => []), 'GetAllBookingQueueForAdmin': TypeInfo(TypeOf.Class, create:() => GetAllBookingQueueForAdmin()), });