/* Options: Date: 2026-10-08 22:15:51 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: SetupCodePost.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class SetupCode implements IConvertible { String? cendynPropertyID; String? hotelCode; String? codeId; String? codeGroup; String? languageCode; String? nameValue; String? codeValue; String? description; String? alternativeName; String? alternativeCode; String? alternativeDescription; int? displaySequence; String? comments; String? codeSource; bool? isActive; DateTime? sourceDateCreated; String? sourceCreateUser; DateTime? sourceDateUpdated; String? sourceUpdateUser; SetupCode({this.cendynPropertyID,this.hotelCode,this.codeId,this.codeGroup,this.languageCode,this.nameValue,this.codeValue,this.description,this.alternativeName,this.alternativeCode,this.alternativeDescription,this.displaySequence,this.comments,this.codeSource,this.isActive,this.sourceDateCreated,this.sourceCreateUser,this.sourceDateUpdated,this.sourceUpdateUser}); SetupCode.fromJson(Map json) { fromMap(json); } fromMap(Map json) { cendynPropertyID = json['cendynPropertyID']; hotelCode = json['hotelCode']; codeId = json['codeId']; codeGroup = json['codeGroup']; languageCode = json['languageCode']; nameValue = json['nameValue']; codeValue = json['codeValue']; description = json['description']; alternativeName = json['alternativeName']; alternativeCode = json['alternativeCode']; alternativeDescription = json['alternativeDescription']; displaySequence = json['displaySequence']; comments = json['comments']; codeSource = json['codeSource']; isActive = json['isActive']; sourceDateCreated = JsonConverters.fromJson(json['sourceDateCreated'],'DateTime',context!); sourceCreateUser = json['sourceCreateUser']; sourceDateUpdated = JsonConverters.fromJson(json['sourceDateUpdated'],'DateTime',context!); sourceUpdateUser = json['sourceUpdateUser']; return this; } Map toJson() => { 'cendynPropertyID': cendynPropertyID, 'hotelCode': hotelCode, 'codeId': codeId, 'codeGroup': codeGroup, 'languageCode': languageCode, 'nameValue': nameValue, 'codeValue': codeValue, 'description': description, 'alternativeName': alternativeName, 'alternativeCode': alternativeCode, 'alternativeDescription': alternativeDescription, 'displaySequence': displaySequence, 'comments': comments, 'codeSource': codeSource, 'isActive': isActive, 'sourceDateCreated': JsonConverters.toJson(sourceDateCreated,'DateTime',context!), 'sourceCreateUser': sourceCreateUser, 'sourceDateUpdated': JsonConverters.toJson(sourceDateUpdated,'DateTime',context!), 'sourceUpdateUser': sourceUpdateUser }; getTypeName() => "SetupCode"; 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("/setupcode/{SubscriptionId}/{CendynPropertyId}", "POST") class SetupCodePost implements IReturn, IConvertible { List? setupCodes; String? subscriptionId; String? cendynPropertyId; SetupCodePost({this.setupCodes,this.subscriptionId,this.cendynPropertyId}); SetupCodePost.fromJson(Map json) { fromMap(json); } fromMap(Map json) { setupCodes = JsonConverters.fromJson(json['setupCodes'],'List',context!); subscriptionId = json['subscriptionId']; cendynPropertyId = json['cendynPropertyId']; return this; } Map toJson() => { 'setupCodes': JsonConverters.toJson(setupCodes,'List',context!), 'subscriptionId': subscriptionId, 'cendynPropertyId': cendynPropertyId }; createResponse() => Response(); getResponseTypeName() => "Response"; getTypeName() => "SetupCodePost"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'cert.cendyn.com', types: { 'SetupCode': TypeInfo(TypeOf.Class, create:() => SetupCode()), 'Response': TypeInfo(TypeOf.Class, create:() => Response()), 'SetupCodePost': TypeInfo(TypeOf.Class, create:() => SetupCodePost()), 'List': TypeInfo(TypeOf.Class, create:() => []), });