/* Options: Date: 2026-11-08 11:31:55 Version: 5.140 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://devapi.billhighway.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateUpdateEvent.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class IHaveErrorField { bool? IsError; } abstract class IHaveErrorField { bool? IsError; } class CreateUpdateEventReply implements IHaveErrorField, IConvertible { String? ClassName; String? UniqueId; DateTime? CreatedDateTime; int? ClientId; String? BillhighwaycampaignId; int? ErrorCode; String? ErrorMessage; bool? IsError; CreateUpdateEventReply({this.ClassName,this.UniqueId,this.CreatedDateTime,this.ClientId,this.BillhighwaycampaignId,this.ErrorCode,this.ErrorMessage,this.IsError}); CreateUpdateEventReply.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ClassName = json['ClassName']; UniqueId = json['UniqueId']; CreatedDateTime = JsonConverters.fromJson(json['CreatedDateTime'],'DateTime',context!); ClientId = json['ClientId']; BillhighwaycampaignId = json['BillhighwaycampaignId']; ErrorCode = json['ErrorCode']; ErrorMessage = json['ErrorMessage']; IsError = json['IsError']; return this; } Map toJson() => { 'ClassName': ClassName, 'UniqueId': UniqueId, 'CreatedDateTime': JsonConverters.toJson(CreatedDateTime,'DateTime',context!), 'ClientId': ClientId, 'BillhighwaycampaignId': BillhighwaycampaignId, 'ErrorCode': ErrorCode, 'ErrorMessage': ErrorMessage, 'IsError': IsError }; getTypeName() => "CreateUpdateEventReply"; TypeContext? context = _ctx; } // @Route("/event", "POST") class CreateUpdateEvent implements IReturn, IConvertible { String? ClassName; String? UniqueId; DateTime? CreatedDateTime; int? ClientId; String? GroupId; String? EventName; String? EventDescription; String? Region; String? CostCenter; String? RegionCostCenter; CreateUpdateEvent({this.ClassName,this.UniqueId,this.CreatedDateTime,this.ClientId,this.GroupId,this.EventName,this.EventDescription,this.Region,this.CostCenter,this.RegionCostCenter}); CreateUpdateEvent.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ClassName = json['ClassName']; UniqueId = json['UniqueId']; CreatedDateTime = JsonConverters.fromJson(json['CreatedDateTime'],'DateTime',context!); ClientId = json['ClientId']; GroupId = json['GroupId']; EventName = json['EventName']; EventDescription = json['EventDescription']; Region = json['Region']; CostCenter = json['CostCenter']; RegionCostCenter = json['RegionCostCenter']; return this; } Map toJson() => { 'ClassName': ClassName, 'UniqueId': UniqueId, 'CreatedDateTime': JsonConverters.toJson(CreatedDateTime,'DateTime',context!), 'ClientId': ClientId, 'GroupId': GroupId, 'EventName': EventName, 'EventDescription': EventDescription, 'Region': Region, 'CostCenter': CostCenter, 'RegionCostCenter': RegionCostCenter }; createResponse() => CreateUpdateEventReply(); getResponseTypeName() => "CreateUpdateEventReply"; getTypeName() => "CreateUpdateEvent"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: { 'IHaveErrorField': TypeInfo(TypeOf.Interface), 'CreateUpdateEventReply': TypeInfo(TypeOf.Class, create:() => CreateUpdateEventReply()), 'CreateUpdateEvent': TypeInfo(TypeOf.Class, create:() => CreateUpdateEvent()), });