/* Options: Date: 2026-10-08 22:59:54 Version: 6.21 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://cert.cendyn.com/CenResServiceR2Test //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: HotelInventorySnapshot.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class InventoryRoom implements IConvertible { String? roomType; int? physicalRooms; int? outOfOrder; int? definitiveAvailable; int? definitiveSold; int? blockCount; double? expectedBlockRevenue; int? casinoBlockCount; double? expectedCasinoRevenue; InventoryRoom({this.roomType,this.physicalRooms,this.outOfOrder,this.definitiveAvailable,this.definitiveSold,this.blockCount,this.expectedBlockRevenue,this.casinoBlockCount,this.expectedCasinoRevenue}); InventoryRoom.fromJson(Map json) { fromMap(json); } fromMap(Map json) { roomType = json['roomType']; physicalRooms = json['physicalRooms']; outOfOrder = json['outOfOrder']; definitiveAvailable = json['definitiveAvailable']; definitiveSold = json['definitiveSold']; blockCount = json['blockCount']; expectedBlockRevenue = JsonConverters.toDouble(json['expectedBlockRevenue']); casinoBlockCount = json['casinoBlockCount']; expectedCasinoRevenue = JsonConverters.toDouble(json['expectedCasinoRevenue']); return this; } Map toJson() => { 'roomType': roomType, 'physicalRooms': physicalRooms, 'outOfOrder': outOfOrder, 'definitiveAvailable': definitiveAvailable, 'definitiveSold': definitiveSold, 'blockCount': blockCount, 'expectedBlockRevenue': expectedBlockRevenue, 'casinoBlockCount': casinoBlockCount, 'expectedCasinoRevenue': expectedCasinoRevenue }; getTypeName() => "InventoryRoom"; TypeContext? context = _ctx; } class InventorySnapshot implements IConvertible { String? cendynPropertyID; String? hotelCode; DateTime? inventoryDay; int? physicalRooms; int? outOfOrder; int? definitiveSold; int? blockCount; double? expectedBlockRevenue; int? casinoBlockCount; double? expectedCasinoRevenue; String? sourceName; String? sourceID; List? inventoryRooms; InventorySnapshot({this.cendynPropertyID,this.hotelCode,this.inventoryDay,this.physicalRooms,this.outOfOrder,this.definitiveSold,this.blockCount,this.expectedBlockRevenue,this.casinoBlockCount,this.expectedCasinoRevenue,this.sourceName,this.sourceID,this.inventoryRooms}); InventorySnapshot.fromJson(Map json) { fromMap(json); } fromMap(Map json) { cendynPropertyID = json['cendynPropertyID']; hotelCode = json['hotelCode']; inventoryDay = JsonConverters.fromJson(json['inventoryDay'],'DateTime',context!); physicalRooms = json['physicalRooms']; outOfOrder = json['outOfOrder']; definitiveSold = json['definitiveSold']; blockCount = json['blockCount']; expectedBlockRevenue = JsonConverters.toDouble(json['expectedBlockRevenue']); casinoBlockCount = json['casinoBlockCount']; expectedCasinoRevenue = JsonConverters.toDouble(json['expectedCasinoRevenue']); sourceName = json['sourceName']; sourceID = json['sourceID']; inventoryRooms = JsonConverters.fromJson(json['inventoryRooms'],'List',context!); return this; } Map toJson() => { 'cendynPropertyID': cendynPropertyID, 'hotelCode': hotelCode, 'inventoryDay': JsonConverters.toJson(inventoryDay,'DateTime',context!), 'physicalRooms': physicalRooms, 'outOfOrder': outOfOrder, 'definitiveSold': definitiveSold, 'blockCount': blockCount, 'expectedBlockRevenue': expectedBlockRevenue, 'casinoBlockCount': casinoBlockCount, 'expectedCasinoRevenue': expectedCasinoRevenue, 'sourceName': sourceName, 'sourceID': sourceID, 'inventoryRooms': JsonConverters.toJson(inventoryRooms,'List',context!) }; getTypeName() => "InventorySnapshot"; TypeContext? context = _ctx; } class Response implements IConvertible { String? statusCode; int? recordCount; int? errorCount; Response({this.statusCode,this.recordCount,this.errorCount}); Response.fromJson(Map json) { fromMap(json); } fromMap(Map json) { statusCode = json['statusCode']; recordCount = json['recordCount']; errorCount = json['errorCount']; return this; } Map toJson() => { 'statusCode': statusCode, 'recordCount': recordCount, 'errorCount': errorCount }; getTypeName() => "Response"; TypeContext? context = _ctx; } // @Route("/hotelinventorysnapshot/{SubscriptionId}/{CendynPropertyId}", "POST") class HotelInventorySnapshot implements IReturn, IConvertible { InventorySnapshot? inventorySnapshot; String? subscriptionId; String? cendynPropertyId; HotelInventorySnapshot({this.inventorySnapshot,this.subscriptionId,this.cendynPropertyId}); HotelInventorySnapshot.fromJson(Map json) { fromMap(json); } fromMap(Map json) { inventorySnapshot = JsonConverters.fromJson(json['inventorySnapshot'],'InventorySnapshot',context!); subscriptionId = json['subscriptionId']; cendynPropertyId = json['cendynPropertyId']; return this; } Map toJson() => { 'inventorySnapshot': JsonConverters.toJson(inventorySnapshot,'InventorySnapshot',context!), 'subscriptionId': subscriptionId, 'cendynPropertyId': cendynPropertyId }; createResponse() => Response(); getResponseTypeName() => "Response"; getTypeName() => "HotelInventorySnapshot"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'cert.cendyn.com', types: { 'InventoryRoom': TypeInfo(TypeOf.Class, create:() => InventoryRoom()), 'InventorySnapshot': TypeInfo(TypeOf.Class, create:() => InventorySnapshot()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Response': TypeInfo(TypeOf.Class, create:() => Response()), 'HotelInventorySnapshot': TypeInfo(TypeOf.Class, create:() => HotelInventorySnapshot()), });