/* Options: Date: 2025-12-06 07:06:57 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: PolicyRequiredDocumentRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class PolicyDocumentStatus implements IConvertible { int? Id; String? Name; bool? IsNBCStatus; bool? IsAgentStatus; PolicyDocumentStatus({this.Id,this.Name,this.IsNBCStatus,this.IsAgentStatus}); PolicyDocumentStatus.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; IsNBCStatus = json['IsNBCStatus']; IsAgentStatus = json['IsAgentStatus']; return this; } Map toJson() => { 'Id': Id, 'Name': Name, 'IsNBCStatus': IsNBCStatus, 'IsAgentStatus': IsAgentStatus }; getTypeName() => "PolicyDocumentStatus"; TypeContext? context = _ctx; } class PolicyRequiredDocument implements IConvertible { int? Id; String? PolicyAssociateId; int? PolicyDocumentId; int? NBCStatusId; int? AgentStatusId; List? StatusOptions = []; PolicyRequiredDocument({this.Id,this.PolicyAssociateId,this.PolicyDocumentId,this.NBCStatusId,this.AgentStatusId,this.StatusOptions}); PolicyRequiredDocument.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; PolicyAssociateId = json['PolicyAssociateId']; PolicyDocumentId = json['PolicyDocumentId']; NBCStatusId = json['NBCStatusId']; AgentStatusId = json['AgentStatusId']; StatusOptions = JsonConverters.fromJson(json['StatusOptions'],'List',context!); return this; } Map toJson() => { 'Id': Id, 'PolicyAssociateId': PolicyAssociateId, 'PolicyDocumentId': PolicyDocumentId, 'NBCStatusId': NBCStatusId, 'AgentStatusId': AgentStatusId, 'StatusOptions': JsonConverters.toJson(StatusOptions,'List',context!) }; getTypeName() => "PolicyRequiredDocument"; TypeContext? context = _ctx; } class PolicyDocumentReminder implements IConvertible { int? Id; int? PolicyDocumentId; String? ReminderFor; int? ReminderLeadTime; String? ReminderMessage; int? AdminAgentId; bool? NeedsPrompt; PolicyDocumentReminder({this.Id,this.PolicyDocumentId,this.ReminderFor,this.ReminderLeadTime,this.ReminderMessage,this.AdminAgentId,this.NeedsPrompt}); PolicyDocumentReminder.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; PolicyDocumentId = json['PolicyDocumentId']; ReminderFor = json['ReminderFor']; ReminderLeadTime = json['ReminderLeadTime']; ReminderMessage = json['ReminderMessage']; AdminAgentId = json['AdminAgentId']; NeedsPrompt = json['NeedsPrompt']; return this; } Map toJson() => { 'Id': Id, 'PolicyDocumentId': PolicyDocumentId, 'ReminderFor': ReminderFor, 'ReminderLeadTime': ReminderLeadTime, 'ReminderMessage': ReminderMessage, 'AdminAgentId': AdminAgentId, 'NeedsPrompt': NeedsPrompt }; getTypeName() => "PolicyDocumentReminder"; TypeContext? context = _ctx; } class Reminder implements IConvertible { String? ReminderId; String? TableName; String? FieldName; int? RecordId; DateTime? ReminderDate; String? ReminderNote; DateTime? CreatedDate; String? CreatedBy; DateTime? CompletedDate; Reminder({this.ReminderId,this.TableName,this.FieldName,this.RecordId,this.ReminderDate,this.ReminderNote,this.CreatedDate,this.CreatedBy,this.CompletedDate}); Reminder.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ReminderId = json['ReminderId']; TableName = json['TableName']; FieldName = json['FieldName']; RecordId = json['RecordId']; ReminderDate = JsonConverters.fromJson(json['ReminderDate'],'DateTime',context!); ReminderNote = json['ReminderNote']; CreatedDate = JsonConverters.fromJson(json['CreatedDate'],'DateTime',context!); CreatedBy = json['CreatedBy']; CompletedDate = JsonConverters.fromJson(json['CompletedDate'],'DateTime',context!); return this; } Map toJson() => { 'ReminderId': ReminderId, 'TableName': TableName, 'FieldName': FieldName, 'RecordId': RecordId, 'ReminderDate': JsonConverters.toJson(ReminderDate,'DateTime',context!), 'ReminderNote': ReminderNote, 'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!), 'CreatedBy': CreatedBy, 'CompletedDate': JsonConverters.toJson(CompletedDate,'DateTime',context!) }; getTypeName() => "Reminder"; TypeContext? context = _ctx; } class ReminderExtended extends Reminder implements IConvertible { String? AgentName; String? RecordAgentName; int? RecordAgentID; bool? IsAdmin; int? AgentID; ReminderExtended({this.AgentName,this.RecordAgentName,this.RecordAgentID,this.IsAdmin,this.AgentID}); ReminderExtended.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); AgentName = json['AgentName']; RecordAgentName = json['RecordAgentName']; RecordAgentID = json['RecordAgentID']; IsAdmin = json['IsAdmin']; AgentID = json['AgentID']; return this; } Map toJson() => super.toJson()..addAll({ 'AgentName': AgentName, 'RecordAgentName': RecordAgentName, 'RecordAgentID': RecordAgentID, 'IsAdmin': IsAdmin, 'AgentID': AgentID }); getTypeName() => "ReminderExtended"; TypeContext? context = _ctx; } class PolicyRequiredDocumentExtended extends PolicyRequiredDocument implements IConvertible { List? Reminders = []; List? AgentReminders = []; PolicyRequiredDocumentExtended({this.Reminders,this.AgentReminders}); PolicyRequiredDocumentExtended.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Reminders = JsonConverters.fromJson(json['Reminders'],'List',context!); AgentReminders = JsonConverters.fromJson(json['AgentReminders'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Reminders': JsonConverters.toJson(Reminders,'List',context!), 'AgentReminders': JsonConverters.toJson(AgentReminders,'List',context!) }); getTypeName() => "PolicyRequiredDocumentExtended"; TypeContext? context = _ctx; } class PolicyRequiredDocumentResponse implements IConvertible { ResponseStatus? ResponseStatus; List? PolicyRequiredDocuments = []; PolicyRequiredDocumentResponse({this.ResponseStatus,this.PolicyRequiredDocuments}); PolicyRequiredDocumentResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); PolicyRequiredDocuments = JsonConverters.fromJson(json['PolicyRequiredDocuments'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'PolicyRequiredDocuments': JsonConverters.toJson(PolicyRequiredDocuments,'List',context!) }; getTypeName() => "PolicyRequiredDocumentResponse"; TypeContext? context = _ctx; } // @Route("/v1/PolicyRequiredDocument/GetAllByPolicyAssociateId/{PolicyAssociateId}", "GET") // @Route("/v1/PolicyRequiredDocument/{Id}", "PUT,DELETE,OPTIONS") // @Route("/v1/PolicyRequiredDocument", "POST,OPTIONS") class PolicyRequiredDocumentRequest implements IReturn, IConvertible, IGet { PolicyRequiredDocumentExtended? PolicyRequiredDocument; String? PolicyAssociateId; int? Id; PolicyRequiredDocumentRequest({this.PolicyRequiredDocument,this.PolicyAssociateId,this.Id}); PolicyRequiredDocumentRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { PolicyRequiredDocument = JsonConverters.fromJson(json['PolicyRequiredDocument'],'PolicyRequiredDocumentExtended',context!); PolicyAssociateId = json['PolicyAssociateId']; Id = json['Id']; return this; } Map toJson() => { 'PolicyRequiredDocument': JsonConverters.toJson(PolicyRequiredDocument,'PolicyRequiredDocumentExtended',context!), 'PolicyAssociateId': PolicyAssociateId, 'Id': Id }; createResponse() => PolicyRequiredDocumentResponse(); getResponseTypeName() => "PolicyRequiredDocumentResponse"; getTypeName() => "PolicyRequiredDocumentRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'PolicyDocumentStatus': TypeInfo(TypeOf.Class, create:() => PolicyDocumentStatus()), 'PolicyRequiredDocument': TypeInfo(TypeOf.Class, create:() => PolicyRequiredDocument()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'PolicyDocumentReminder': TypeInfo(TypeOf.Class, create:() => PolicyDocumentReminder()), 'Reminder': TypeInfo(TypeOf.Class, create:() => Reminder()), 'ReminderExtended': TypeInfo(TypeOf.Class, create:() => ReminderExtended()), 'PolicyRequiredDocumentExtended': TypeInfo(TypeOf.Class, create:() => PolicyRequiredDocumentExtended()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'PolicyRequiredDocumentResponse': TypeInfo(TypeOf.Class, create:() => PolicyRequiredDocumentResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'PolicyRequiredDocumentRequest': TypeInfo(TypeOf.Class, create:() => PolicyRequiredDocumentRequest()), });