/* Options: Date: 2025-12-06 08:30:33 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: AgentRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class QueueDefault implements IConvertible { String? LocationId; List? Services = []; QueueDefault({this.LocationId,this.Services}); QueueDefault.fromJson(Map json) { fromMap(json); } fromMap(Map json) { LocationId = json['LocationId']; Services = JsonConverters.fromJson(json['Services'],'List',context!); return this; } Map toJson() => { 'LocationId': LocationId, 'Services': JsonConverters.toJson(Services,'List',context!) }; getTypeName() => "QueueDefault"; TypeContext? context = _ctx; } class Agent implements IConvertible { int? AgentId; String? Company; String? AgentName; String? FirstName; String? LastName; String? MiddleInitial; String? Address1; String? Address2; String? City; String? State; String? Zip; String? Country; String? Email; String? EmailSignature; String? HomePhone; String? CellPhone; String? WorkPhone; bool? InsLicensed; bool? AgreeToDisclosures; DateTime? AgreeToDate; DateTime? PaidDate; String? AgentNumber; String? ReferringAgent; String? PlacementAgent; DateTime? CreatedDate; String? UserId; bool? IsAgent; String? Package; String? StoreName; String? Notes; int? Upline1; int? Upline2; int? Upline3; int? Upline4; int? MVPID; int? AVPID; int? RVPID; double? AgentLevel; bool? IsMVP; bool? IsRVP; bool? IsAVP; bool? IsAdmin; bool? IsBusinessCardAdmin; String? TeamName; String? LocationId; String? CalendarId; String? Rank; bool? NBC; double? Upline1Percent; double? Upline2Percent; double? Upline3Percent; double? Upline4Percent; String? AgentStatus; String? Office; DateTime? DOB; String? SSN; String? Fax; String? BusinessEmail; DateTime? ModifiedDate; String? ModifiedBy; String? TimeZone; bool? LeaderLocked; DateTime? LastSubmittedBusinessDate; DateTime? GracePeriodDate; bool? Vested; DateTime? DirectPay; String? DirectPayApprBy; double? FactFinderBilling; String? FullName; String? ByLastName; bool? IsSecurityLicensed; bool? IsEncompassAdmin; String? ApiKey; String? LastSessionId; DateTime? LastLogin; bool? MfaActive; bool? RequireMFA; String? SMSPhoneNumber; bool? VerifiedEmailStatus; bool? VerifiedCellPhoneStatus; String? SchedulerUrl; QueueDefault? QueueDefaults; List? Roles = []; bool? PasswordUpdated; bool? RestrictToSingleSession; Agent({this.AgentId,this.Company,this.AgentName,this.FirstName,this.LastName,this.MiddleInitial,this.Address1,this.Address2,this.City,this.State,this.Zip,this.Country,this.Email,this.EmailSignature,this.HomePhone,this.CellPhone,this.WorkPhone,this.InsLicensed,this.AgreeToDisclosures,this.AgreeToDate,this.PaidDate,this.AgentNumber,this.ReferringAgent,this.PlacementAgent,this.CreatedDate,this.UserId,this.IsAgent,this.Package,this.StoreName,this.Notes,this.Upline1,this.Upline2,this.Upline3,this.Upline4,this.MVPID,this.AVPID,this.RVPID,this.AgentLevel,this.IsMVP,this.IsRVP,this.IsAVP,this.IsAdmin,this.IsBusinessCardAdmin,this.TeamName,this.LocationId,this.CalendarId,this.Rank,this.NBC,this.Upline1Percent,this.Upline2Percent,this.Upline3Percent,this.Upline4Percent,this.AgentStatus,this.Office,this.DOB,this.SSN,this.Fax,this.BusinessEmail,this.ModifiedDate,this.ModifiedBy,this.TimeZone,this.LeaderLocked,this.LastSubmittedBusinessDate,this.GracePeriodDate,this.Vested,this.DirectPay,this.DirectPayApprBy,this.FactFinderBilling,this.FullName,this.ByLastName,this.IsSecurityLicensed,this.IsEncompassAdmin,this.ApiKey,this.LastSessionId,this.LastLogin,this.MfaActive,this.RequireMFA,this.SMSPhoneNumber,this.VerifiedEmailStatus,this.VerifiedCellPhoneStatus,this.SchedulerUrl,this.QueueDefaults,this.Roles,this.PasswordUpdated,this.RestrictToSingleSession}); Agent.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AgentId = json['AgentId']; Company = json['Company']; AgentName = json['AgentName']; FirstName = json['FirstName']; LastName = json['LastName']; MiddleInitial = json['MiddleInitial']; Address1 = json['Address1']; Address2 = json['Address2']; City = json['City']; State = json['State']; Zip = json['Zip']; Country = json['Country']; Email = json['Email']; EmailSignature = json['EmailSignature']; HomePhone = json['HomePhone']; CellPhone = json['CellPhone']; WorkPhone = json['WorkPhone']; InsLicensed = json['InsLicensed']; AgreeToDisclosures = json['AgreeToDisclosures']; AgreeToDate = JsonConverters.fromJson(json['AgreeToDate'],'DateTime',context!); PaidDate = JsonConverters.fromJson(json['PaidDate'],'DateTime',context!); AgentNumber = json['AgentNumber']; ReferringAgent = json['ReferringAgent']; PlacementAgent = json['PlacementAgent']; CreatedDate = JsonConverters.fromJson(json['CreatedDate'],'DateTime',context!); UserId = json['UserId']; IsAgent = json['IsAgent']; Package = json['Package']; StoreName = json['StoreName']; Notes = json['Notes']; Upline1 = json['Upline1']; Upline2 = json['Upline2']; Upline3 = json['Upline3']; Upline4 = json['Upline4']; MVPID = json['MVPID']; AVPID = json['AVPID']; RVPID = json['RVPID']; AgentLevel = JsonConverters.toDouble(json['AgentLevel']); IsMVP = json['IsMVP']; IsRVP = json['IsRVP']; IsAVP = json['IsAVP']; IsAdmin = json['IsAdmin']; IsBusinessCardAdmin = json['IsBusinessCardAdmin']; TeamName = json['TeamName']; LocationId = json['LocationId']; CalendarId = json['CalendarId']; Rank = json['Rank']; NBC = json['NBC']; Upline1Percent = JsonConverters.toDouble(json['Upline1Percent']); Upline2Percent = JsonConverters.toDouble(json['Upline2Percent']); Upline3Percent = JsonConverters.toDouble(json['Upline3Percent']); Upline4Percent = JsonConverters.toDouble(json['Upline4Percent']); AgentStatus = json['AgentStatus']; Office = json['Office']; DOB = JsonConverters.fromJson(json['DOB'],'DateTime',context!); SSN = json['SSN']; Fax = json['Fax']; BusinessEmail = json['BusinessEmail']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); ModifiedBy = json['ModifiedBy']; TimeZone = json['TimeZone']; LeaderLocked = json['LeaderLocked']; LastSubmittedBusinessDate = JsonConverters.fromJson(json['LastSubmittedBusinessDate'],'DateTime',context!); GracePeriodDate = JsonConverters.fromJson(json['GracePeriodDate'],'DateTime',context!); Vested = json['Vested']; DirectPay = JsonConverters.fromJson(json['DirectPay'],'DateTime',context!); DirectPayApprBy = json['DirectPayApprBy']; FactFinderBilling = JsonConverters.toDouble(json['FactFinderBilling']); FullName = json['FullName']; ByLastName = json['ByLastName']; IsSecurityLicensed = json['IsSecurityLicensed']; IsEncompassAdmin = json['IsEncompassAdmin']; ApiKey = json['ApiKey']; LastSessionId = json['LastSessionId']; LastLogin = JsonConverters.fromJson(json['LastLogin'],'DateTime',context!); MfaActive = json['MfaActive']; RequireMFA = json['RequireMFA']; SMSPhoneNumber = json['SMSPhoneNumber']; VerifiedEmailStatus = json['VerifiedEmailStatus']; VerifiedCellPhoneStatus = json['VerifiedCellPhoneStatus']; SchedulerUrl = json['SchedulerUrl']; QueueDefaults = JsonConverters.fromJson(json['QueueDefaults'],'QueueDefault',context!); Roles = JsonConverters.fromJson(json['Roles'],'List',context!); PasswordUpdated = json['PasswordUpdated']; RestrictToSingleSession = json['RestrictToSingleSession']; return this; } Map toJson() => { 'AgentId': AgentId, 'Company': Company, 'AgentName': AgentName, 'FirstName': FirstName, 'LastName': LastName, 'MiddleInitial': MiddleInitial, 'Address1': Address1, 'Address2': Address2, 'City': City, 'State': State, 'Zip': Zip, 'Country': Country, 'Email': Email, 'EmailSignature': EmailSignature, 'HomePhone': HomePhone, 'CellPhone': CellPhone, 'WorkPhone': WorkPhone, 'InsLicensed': InsLicensed, 'AgreeToDisclosures': AgreeToDisclosures, 'AgreeToDate': JsonConverters.toJson(AgreeToDate,'DateTime',context!), 'PaidDate': JsonConverters.toJson(PaidDate,'DateTime',context!), 'AgentNumber': AgentNumber, 'ReferringAgent': ReferringAgent, 'PlacementAgent': PlacementAgent, 'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!), 'UserId': UserId, 'IsAgent': IsAgent, 'Package': Package, 'StoreName': StoreName, 'Notes': Notes, 'Upline1': Upline1, 'Upline2': Upline2, 'Upline3': Upline3, 'Upline4': Upline4, 'MVPID': MVPID, 'AVPID': AVPID, 'RVPID': RVPID, 'AgentLevel': AgentLevel, 'IsMVP': IsMVP, 'IsRVP': IsRVP, 'IsAVP': IsAVP, 'IsAdmin': IsAdmin, 'IsBusinessCardAdmin': IsBusinessCardAdmin, 'TeamName': TeamName, 'LocationId': LocationId, 'CalendarId': CalendarId, 'Rank': Rank, 'NBC': NBC, 'Upline1Percent': Upline1Percent, 'Upline2Percent': Upline2Percent, 'Upline3Percent': Upline3Percent, 'Upline4Percent': Upline4Percent, 'AgentStatus': AgentStatus, 'Office': Office, 'DOB': JsonConverters.toJson(DOB,'DateTime',context!), 'SSN': SSN, 'Fax': Fax, 'BusinessEmail': BusinessEmail, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'ModifiedBy': ModifiedBy, 'TimeZone': TimeZone, 'LeaderLocked': LeaderLocked, 'LastSubmittedBusinessDate': JsonConverters.toJson(LastSubmittedBusinessDate,'DateTime',context!), 'GracePeriodDate': JsonConverters.toJson(GracePeriodDate,'DateTime',context!), 'Vested': Vested, 'DirectPay': JsonConverters.toJson(DirectPay,'DateTime',context!), 'DirectPayApprBy': DirectPayApprBy, 'FactFinderBilling': FactFinderBilling, 'FullName': FullName, 'ByLastName': ByLastName, 'IsSecurityLicensed': IsSecurityLicensed, 'IsEncompassAdmin': IsEncompassAdmin, 'ApiKey': ApiKey, 'LastSessionId': LastSessionId, 'LastLogin': JsonConverters.toJson(LastLogin,'DateTime',context!), 'MfaActive': MfaActive, 'RequireMFA': RequireMFA, 'SMSPhoneNumber': SMSPhoneNumber, 'VerifiedEmailStatus': VerifiedEmailStatus, 'VerifiedCellPhoneStatus': VerifiedCellPhoneStatus, 'SchedulerUrl': SchedulerUrl, 'QueueDefaults': JsonConverters.toJson(QueueDefaults,'QueueDefault',context!), 'Roles': JsonConverters.toJson(Roles,'List',context!), 'PasswordUpdated': PasswordUpdated, 'RestrictToSingleSession': RestrictToSingleSession }; getTypeName() => "Agent"; TypeContext? context = _ctx; } class AgentResponse implements IConvertible { ResponseStatus? ResponseStatus; List? Agent = []; AgentResponse({this.ResponseStatus,this.Agent}); AgentResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Agent = JsonConverters.fromJson(json['Agent'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Agent': JsonConverters.toJson(Agent,'List',context!) }; getTypeName() => "AgentResponse"; TypeContext? context = _ctx; } // @Route("/v1/Agent", "GET,POST,PUT,DELETE,OPTIONS") // @Route("/v1/Agent/{AgentId}", "GET") // @Route("/v1/Agent/ByUserId/{UserId}", "GET") // @Route("/v1/Agent/Hierarchy/{ParamGetHierarchy}", "GET,POST,PUT,DELETE,OPTIONS") // @Route("/v1/Agent/Hierarchy/{ParamGetHierarchy}/{ParamDistinct}", "GET,OPTIONS") // @Route("/v1/Agent/Hierarchy/{ParamGetHierarchy}/{ParamDistinct}/{NewAgents}", "GET,OPTIONS") class AgentRequest implements IReturn, IConvertible, IGet { List? Agent = []; bool? ParamGetHierarchy; bool? ParamDistinct; bool? NewAgents; int? AgentId; String? Location; String? UserId; List? Services = []; AgentRequest({this.Agent,this.ParamGetHierarchy,this.ParamDistinct,this.NewAgents,this.AgentId,this.Location,this.UserId,this.Services}); AgentRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Agent = JsonConverters.fromJson(json['Agent'],'List',context!); ParamGetHierarchy = json['ParamGetHierarchy']; ParamDistinct = json['ParamDistinct']; NewAgents = json['NewAgents']; AgentId = json['AgentId']; Location = json['Location']; UserId = json['UserId']; Services = JsonConverters.fromJson(json['Services'],'List',context!); return this; } Map toJson() => { 'Agent': JsonConverters.toJson(Agent,'List',context!), 'ParamGetHierarchy': ParamGetHierarchy, 'ParamDistinct': ParamDistinct, 'NewAgents': NewAgents, 'AgentId': AgentId, 'Location': Location, 'UserId': UserId, 'Services': JsonConverters.toJson(Services,'List',context!) }; createResponse() => AgentResponse(); getResponseTypeName() => "AgentResponse"; getTypeName() => "AgentRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'QueueDefault': TypeInfo(TypeOf.Class, create:() => QueueDefault()), 'Agent': TypeInfo(TypeOf.Class, create:() => Agent()), 'AgentResponse': TypeInfo(TypeOf.Class, create:() => AgentResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'AgentRequest': TypeInfo(TypeOf.Class, create:() => AgentRequest()), });