/* Options: Date: 2025-12-06 11:45:58 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ContactHistoryRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class ContactHistory implements IConvertible { int? ContactHistoryId; int? ContactId; int? EventId; int? AgentId; DateTime? EventDate; DateTime? DateCreated; String? Note; ContactHistory({this.ContactHistoryId,this.ContactId,this.EventId,this.AgentId,this.EventDate,this.DateCreated,this.Note}); ContactHistory.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ContactHistoryId = json['ContactHistoryId']; ContactId = json['ContactId']; EventId = json['EventId']; AgentId = json['AgentId']; EventDate = JsonConverters.fromJson(json['EventDate'],'DateTime',context!); DateCreated = JsonConverters.fromJson(json['DateCreated'],'DateTime',context!); Note = json['Note']; return this; } Map toJson() => { 'ContactHistoryId': ContactHistoryId, 'ContactId': ContactId, 'EventId': EventId, 'AgentId': AgentId, 'EventDate': JsonConverters.toJson(EventDate,'DateTime',context!), 'DateCreated': JsonConverters.toJson(DateCreated,'DateTime',context!), 'Note': Note }; getTypeName() => "ContactHistory"; TypeContext? context = _ctx; } class ActivityTracker_Application implements IConvertible { String? ContactName; String? Carriers; int? ApplicationId; int? ContactId; double? LifeAP; double? AnnuityFlow; double? AnnuityTransfer; DateTime? DateCreated; ActivityTracker_Application({this.ContactName,this.Carriers,this.ApplicationId,this.ContactId,this.LifeAP,this.AnnuityFlow,this.AnnuityTransfer,this.DateCreated}); ActivityTracker_Application.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ContactName = json['ContactName']; Carriers = json['Carriers']; ApplicationId = json['ApplicationId']; ContactId = json['ContactId']; LifeAP = JsonConverters.toDouble(json['LifeAP']); AnnuityFlow = JsonConverters.toDouble(json['AnnuityFlow']); AnnuityTransfer = JsonConverters.toDouble(json['AnnuityTransfer']); DateCreated = JsonConverters.fromJson(json['DateCreated'],'DateTime',context!); return this; } Map toJson() => { 'ContactName': ContactName, 'Carriers': Carriers, 'ApplicationId': ApplicationId, 'ContactId': ContactId, 'LifeAP': LifeAP, 'AnnuityFlow': AnnuityFlow, 'AnnuityTransfer': AnnuityTransfer, 'DateCreated': JsonConverters.toJson(DateCreated,'DateTime',context!) }; getTypeName() => "ActivityTracker_Application"; TypeContext? context = _ctx; } class ContactHistoryExtended extends ContactHistory implements IConvertible { String? EventTypeName; List? Application = []; ContactHistoryExtended({this.EventTypeName,this.Application}); ContactHistoryExtended.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); EventTypeName = json['EventTypeName']; Application = JsonConverters.fromJson(json['Application'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'EventTypeName': EventTypeName, 'Application': JsonConverters.toJson(Application,'List',context!) }); getTypeName() => "ContactHistoryExtended"; TypeContext? context = _ctx; } class ContactHistoryResponse implements IConvertible { ResponseStatus? ResponseStatus; List? ContactHistory = []; ContactHistoryResponse({this.ResponseStatus,this.ContactHistory}); ContactHistoryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); ContactHistory = JsonConverters.fromJson(json['ContactHistory'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'ContactHistory': JsonConverters.toJson(ContactHistory,'List',context!) }; getTypeName() => "ContactHistoryResponse"; TypeContext? context = _ctx; } // @Route("/v1/ContactHistory", "GET,POST,PUT,DELETE,OPTIONS") // @Route("/v1/ContactHistory/{ContactHistoryId}", "GET,POST,PUT,DELETE,OPTIONS") class ContactHistoryRequest implements IReturn, IConvertible, IPost { List? ContactHistory = []; ContactHistoryRequest({this.ContactHistory}); ContactHistoryRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ContactHistory = JsonConverters.fromJson(json['ContactHistory'],'List',context!); return this; } Map toJson() => { 'ContactHistory': JsonConverters.toJson(ContactHistory,'List',context!) }; createResponse() => ContactHistoryResponse(); getResponseTypeName() => "ContactHistoryResponse"; getTypeName() => "ContactHistoryRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'ContactHistory': TypeInfo(TypeOf.Class, create:() => ContactHistory()), 'ActivityTracker_Application': TypeInfo(TypeOf.Class, create:() => ActivityTracker_Application()), 'ContactHistoryExtended': TypeInfo(TypeOf.Class, create:() => ContactHistoryExtended()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ContactHistoryResponse': TypeInfo(TypeOf.Class, create:() => ContactHistoryResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ContactHistoryRequest': TypeInfo(TypeOf.Class, create:() => ContactHistoryRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), });