/* Options: Date: 2025-12-06 05:06:28 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: LSW_OLifERequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class LSW_OLifE implements IConvertible { int? OLifeID; String? SourceInfo; DateTime? CreateDate; DateTime? TransExeDate; String? HoldingID; String? HoldingTypeCode; String? HoldingStatus; DateTime? AsOfDate; String? Policy_PolNumber; String? Policy_LineOfBusiness; String? Policy_ProductType; String? Policy_ProductCode; String? Policy_CarrierCode; String? Policy_PlanName; String? Policy_PolicyStatus; String? Policy_Jurisdiction; DateTime? Policy_StatusChangeDate; String? Policy_PaymentMode; String? Policy_PaymentModeTC; double? Policy_PaymentAmt; double? TotalPolicy_PaymentAmt; String? Policy_PaymentMethod; double? Life_TargetPremAmt; double? TotalLife_TargetPremAmt; double? Life_FaceAmt; double? TotalLife_FaceAmt; String? ApplicationInfo_TrackingID; String? ApplicationInfo_CWAAmt; String? TotalApplicationInfo_CWAAmt; String? ApplicationInfo_SubmissionType; DateTime? ApplicationInfo_HOPolicyMailDate; String? ApplicationInfo_HoUnderwriterName; DateTime? ApplicationInfo_PlacementEndDate; String? ApplicationInfo_NBContactName; DateTime? ApplicationInfo_SignedDate; String? Client; int? AgentID; String? AgentNM; String? Agent1Percent; String? AgentNM2; String? Agent2Percent; String? AgentNM3; String? Agent3Percent; String? AgentNM4; String? Agent4Percent; double? QualifyingLifePremium; double? TotalQualifyingLifePremium; double? AnnTransfer; double? TotalAnnTransfer; double? AnnFlow; double? TotalAnnFlow; double? Points; double? Life_Expected; double? TotalLife_Expected; String? FullName; int? InterestPercent; double? InterestPercentDecimal; int? Apps; LSW_OLifE({this.OLifeID,this.SourceInfo,this.CreateDate,this.TransExeDate,this.HoldingID,this.HoldingTypeCode,this.HoldingStatus,this.AsOfDate,this.Policy_PolNumber,this.Policy_LineOfBusiness,this.Policy_ProductType,this.Policy_ProductCode,this.Policy_CarrierCode,this.Policy_PlanName,this.Policy_PolicyStatus,this.Policy_Jurisdiction,this.Policy_StatusChangeDate,this.Policy_PaymentMode,this.Policy_PaymentModeTC,this.Policy_PaymentAmt,this.TotalPolicy_PaymentAmt,this.Policy_PaymentMethod,this.Life_TargetPremAmt,this.TotalLife_TargetPremAmt,this.Life_FaceAmt,this.TotalLife_FaceAmt,this.ApplicationInfo_TrackingID,this.ApplicationInfo_CWAAmt,this.TotalApplicationInfo_CWAAmt,this.ApplicationInfo_SubmissionType,this.ApplicationInfo_HOPolicyMailDate,this.ApplicationInfo_HoUnderwriterName,this.ApplicationInfo_PlacementEndDate,this.ApplicationInfo_NBContactName,this.ApplicationInfo_SignedDate,this.Client,this.AgentID,this.AgentNM,this.Agent1Percent,this.AgentNM2,this.Agent2Percent,this.AgentNM3,this.Agent3Percent,this.AgentNM4,this.Agent4Percent,this.QualifyingLifePremium,this.TotalQualifyingLifePremium,this.AnnTransfer,this.TotalAnnTransfer,this.AnnFlow,this.TotalAnnFlow,this.Points,this.Life_Expected,this.TotalLife_Expected,this.FullName,this.InterestPercent,this.InterestPercentDecimal,this.Apps}); LSW_OLifE.fromJson(Map json) { fromMap(json); } fromMap(Map json) { OLifeID = json['OLifeID']; SourceInfo = json['SourceInfo']; CreateDate = JsonConverters.fromJson(json['CreateDate'],'DateTime',context!); TransExeDate = JsonConverters.fromJson(json['TransExeDate'],'DateTime',context!); HoldingID = json['HoldingID']; HoldingTypeCode = json['HoldingTypeCode']; HoldingStatus = json['HoldingStatus']; AsOfDate = JsonConverters.fromJson(json['AsOfDate'],'DateTime',context!); Policy_PolNumber = json['Policy_PolNumber']; Policy_LineOfBusiness = json['Policy_LineOfBusiness']; Policy_ProductType = json['Policy_ProductType']; Policy_ProductCode = json['Policy_ProductCode']; Policy_CarrierCode = json['Policy_CarrierCode']; Policy_PlanName = json['Policy_PlanName']; Policy_PolicyStatus = json['Policy_PolicyStatus']; Policy_Jurisdiction = json['Policy_Jurisdiction']; Policy_StatusChangeDate = JsonConverters.fromJson(json['Policy_StatusChangeDate'],'DateTime',context!); Policy_PaymentMode = json['Policy_PaymentMode']; Policy_PaymentModeTC = json['Policy_PaymentModeTC']; Policy_PaymentAmt = JsonConverters.toDouble(json['Policy_PaymentAmt']); TotalPolicy_PaymentAmt = JsonConverters.toDouble(json['TotalPolicy_PaymentAmt']); Policy_PaymentMethod = json['Policy_PaymentMethod']; Life_TargetPremAmt = JsonConverters.toDouble(json['Life_TargetPremAmt']); TotalLife_TargetPremAmt = JsonConverters.toDouble(json['TotalLife_TargetPremAmt']); Life_FaceAmt = JsonConverters.toDouble(json['Life_FaceAmt']); TotalLife_FaceAmt = JsonConverters.toDouble(json['TotalLife_FaceAmt']); ApplicationInfo_TrackingID = json['ApplicationInfo_TrackingID']; ApplicationInfo_CWAAmt = json['ApplicationInfo_CWAAmt']; TotalApplicationInfo_CWAAmt = json['TotalApplicationInfo_CWAAmt']; ApplicationInfo_SubmissionType = json['ApplicationInfo_SubmissionType']; ApplicationInfo_HOPolicyMailDate = JsonConverters.fromJson(json['ApplicationInfo_HOPolicyMailDate'],'DateTime',context!); ApplicationInfo_HoUnderwriterName = json['ApplicationInfo_HoUnderwriterName']; ApplicationInfo_PlacementEndDate = JsonConverters.fromJson(json['ApplicationInfo_PlacementEndDate'],'DateTime',context!); ApplicationInfo_NBContactName = json['ApplicationInfo_NBContactName']; ApplicationInfo_SignedDate = JsonConverters.fromJson(json['ApplicationInfo_SignedDate'],'DateTime',context!); Client = json['Client']; AgentID = json['AgentID']; AgentNM = json['AgentNM']; Agent1Percent = json['Agent1Percent']; AgentNM2 = json['AgentNM2']; Agent2Percent = json['Agent2Percent']; AgentNM3 = json['AgentNM3']; Agent3Percent = json['Agent3Percent']; AgentNM4 = json['AgentNM4']; Agent4Percent = json['Agent4Percent']; QualifyingLifePremium = JsonConverters.toDouble(json['QualifyingLifePremium']); TotalQualifyingLifePremium = JsonConverters.toDouble(json['TotalQualifyingLifePremium']); AnnTransfer = JsonConverters.toDouble(json['AnnTransfer']); TotalAnnTransfer = JsonConverters.toDouble(json['TotalAnnTransfer']); AnnFlow = JsonConverters.toDouble(json['AnnFlow']); TotalAnnFlow = JsonConverters.toDouble(json['TotalAnnFlow']); Points = JsonConverters.toDouble(json['Points']); Life_Expected = JsonConverters.toDouble(json['Life_Expected']); TotalLife_Expected = JsonConverters.toDouble(json['TotalLife_Expected']); FullName = json['FullName']; InterestPercent = json['InterestPercent']; InterestPercentDecimal = JsonConverters.toDouble(json['InterestPercentDecimal']); Apps = json['Apps']; return this; } Map toJson() => { 'OLifeID': OLifeID, 'SourceInfo': SourceInfo, 'CreateDate': JsonConverters.toJson(CreateDate,'DateTime',context!), 'TransExeDate': JsonConverters.toJson(TransExeDate,'DateTime',context!), 'HoldingID': HoldingID, 'HoldingTypeCode': HoldingTypeCode, 'HoldingStatus': HoldingStatus, 'AsOfDate': JsonConverters.toJson(AsOfDate,'DateTime',context!), 'Policy_PolNumber': Policy_PolNumber, 'Policy_LineOfBusiness': Policy_LineOfBusiness, 'Policy_ProductType': Policy_ProductType, 'Policy_ProductCode': Policy_ProductCode, 'Policy_CarrierCode': Policy_CarrierCode, 'Policy_PlanName': Policy_PlanName, 'Policy_PolicyStatus': Policy_PolicyStatus, 'Policy_Jurisdiction': Policy_Jurisdiction, 'Policy_StatusChangeDate': JsonConverters.toJson(Policy_StatusChangeDate,'DateTime',context!), 'Policy_PaymentMode': Policy_PaymentMode, 'Policy_PaymentModeTC': Policy_PaymentModeTC, 'Policy_PaymentAmt': Policy_PaymentAmt, 'TotalPolicy_PaymentAmt': TotalPolicy_PaymentAmt, 'Policy_PaymentMethod': Policy_PaymentMethod, 'Life_TargetPremAmt': Life_TargetPremAmt, 'TotalLife_TargetPremAmt': TotalLife_TargetPremAmt, 'Life_FaceAmt': Life_FaceAmt, 'TotalLife_FaceAmt': TotalLife_FaceAmt, 'ApplicationInfo_TrackingID': ApplicationInfo_TrackingID, 'ApplicationInfo_CWAAmt': ApplicationInfo_CWAAmt, 'TotalApplicationInfo_CWAAmt': TotalApplicationInfo_CWAAmt, 'ApplicationInfo_SubmissionType': ApplicationInfo_SubmissionType, 'ApplicationInfo_HOPolicyMailDate': JsonConverters.toJson(ApplicationInfo_HOPolicyMailDate,'DateTime',context!), 'ApplicationInfo_HoUnderwriterName': ApplicationInfo_HoUnderwriterName, 'ApplicationInfo_PlacementEndDate': JsonConverters.toJson(ApplicationInfo_PlacementEndDate,'DateTime',context!), 'ApplicationInfo_NBContactName': ApplicationInfo_NBContactName, 'ApplicationInfo_SignedDate': JsonConverters.toJson(ApplicationInfo_SignedDate,'DateTime',context!), 'Client': Client, 'AgentID': AgentID, 'AgentNM': AgentNM, 'Agent1Percent': Agent1Percent, 'AgentNM2': AgentNM2, 'Agent2Percent': Agent2Percent, 'AgentNM3': AgentNM3, 'Agent3Percent': Agent3Percent, 'AgentNM4': AgentNM4, 'Agent4Percent': Agent4Percent, 'QualifyingLifePremium': QualifyingLifePremium, 'TotalQualifyingLifePremium': TotalQualifyingLifePremium, 'AnnTransfer': AnnTransfer, 'TotalAnnTransfer': TotalAnnTransfer, 'AnnFlow': AnnFlow, 'TotalAnnFlow': TotalAnnFlow, 'Points': Points, 'Life_Expected': Life_Expected, 'TotalLife_Expected': TotalLife_Expected, 'FullName': FullName, 'InterestPercent': InterestPercent, 'InterestPercentDecimal': InterestPercentDecimal, 'Apps': Apps }; getTypeName() => "LSW_OLifE"; TypeContext? context = _ctx; } class LSW_OLifEResponse implements IConvertible { ResponseStatus? ResponseStatus; List? LSW_OLifE = []; LSW_OLifEResponse({this.ResponseStatus,this.LSW_OLifE}); LSW_OLifEResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); LSW_OLifE = JsonConverters.fromJson(json['LSW_OLifE'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'LSW_OLifE': JsonConverters.toJson(LSW_OLifE,'List',context!) }; getTypeName() => "LSW_OLifEResponse"; TypeContext? context = _ctx; } // @Route("/v1/LSW_OLifE/{StartDate}/{EndDate}", "GET,OPTIONS") // @Route("/v1/LSW_OLifE/{StartDate}/{EndDate}/{AgentID}", "GET,OPTIONS") class LSW_OLifERequest implements IReturn, IConvertible, IGet { DateTime? StartDate; DateTime? EndDate; int? AgentID; LSW_OLifERequest({this.StartDate,this.EndDate,this.AgentID}); LSW_OLifERequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { StartDate = JsonConverters.fromJson(json['StartDate'],'DateTime',context!); EndDate = JsonConverters.fromJson(json['EndDate'],'DateTime',context!); AgentID = json['AgentID']; return this; } Map toJson() => { 'StartDate': JsonConverters.toJson(StartDate,'DateTime',context!), 'EndDate': JsonConverters.toJson(EndDate,'DateTime',context!), 'AgentID': AgentID }; createResponse() => LSW_OLifEResponse(); getResponseTypeName() => "LSW_OLifEResponse"; getTypeName() => "LSW_OLifERequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'LSW_OLifE': TypeInfo(TypeOf.Class, create:() => LSW_OLifE()), 'LSW_OLifEResponse': TypeInfo(TypeOf.Class, create:() => LSW_OLifEResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'LSW_OLifERequest': TypeInfo(TypeOf.Class, create:() => LSW_OLifERequest()), });