/* Options: Date: 2025-12-06 05:26:56 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: SmartsheetsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class Attachment implements IConvertible { String? AttachmentId; String? TableName; String? FieldName; int? RecordId; String? AttachmentName; String? MimeType; Uint8List? AttachmentData = []; double? FileSizeInKB; DateTime? CreatedDate; String? CreatedBy; bool? NeedsOCR; DateTime? OCRDate; bool? IsSecurities; String? AWSKey; String? PresignedUrl; Attachment({this.AttachmentId,this.TableName,this.FieldName,this.RecordId,this.AttachmentName,this.MimeType,this.AttachmentData,this.FileSizeInKB,this.CreatedDate,this.CreatedBy,this.NeedsOCR,this.OCRDate,this.IsSecurities,this.AWSKey,this.PresignedUrl}); Attachment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AttachmentId = json['AttachmentId']; TableName = json['TableName']; FieldName = json['FieldName']; RecordId = json['RecordId']; AttachmentName = json['AttachmentName']; MimeType = json['MimeType']; AttachmentData = JsonConverters.fromJson(json['AttachmentData'],'Uint8List',context!); FileSizeInKB = JsonConverters.toDouble(json['FileSizeInKB']); CreatedDate = JsonConverters.fromJson(json['CreatedDate'],'DateTime',context!); CreatedBy = json['CreatedBy']; NeedsOCR = json['NeedsOCR']; OCRDate = JsonConverters.fromJson(json['OCRDate'],'DateTime',context!); IsSecurities = json['IsSecurities']; AWSKey = json['AWSKey']; PresignedUrl = json['PresignedUrl']; return this; } Map toJson() => { 'AttachmentId': AttachmentId, 'TableName': TableName, 'FieldName': FieldName, 'RecordId': RecordId, 'AttachmentName': AttachmentName, 'MimeType': MimeType, 'AttachmentData': JsonConverters.toJson(AttachmentData,'Uint8List',context!), 'FileSizeInKB': FileSizeInKB, 'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!), 'CreatedBy': CreatedBy, 'NeedsOCR': NeedsOCR, 'OCRDate': JsonConverters.toJson(OCRDate,'DateTime',context!), 'IsSecurities': IsSecurities, 'AWSKey': AWSKey, 'PresignedUrl': PresignedUrl }; getTypeName() => "Attachment"; 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 SmartsheetsLife implements IConvertible { int? ID; String? FirstName; String? LastName; String? PolicyNumber; String? PolicyType; String? CPT; String? AppDate; String? AgentName; int? AgentID; String? Phase; String? Notes; String? TransferAmount; String? AccountNumber; bool? Deleted; String? ModifiedBy; bool? Flagged; String? TransactionId; String? FaceValue; bool? HasChange; bool? HasConversation; bool? HasAgentMsg; bool? HasAdminMsg; List? Attachment = []; List? Reminder = []; String? Agents; bool? HasOCR; String? PolicyAssociateId; bool? HasRequiredDocuments; String? Phone; String? EmailAddress; String? ApprovedDate; String? ApprovedBy; SmartsheetsLife({this.ID,this.FirstName,this.LastName,this.PolicyNumber,this.PolicyType,this.CPT,this.AppDate,this.AgentName,this.AgentID,this.Phase,this.Notes,this.TransferAmount,this.AccountNumber,this.Deleted,this.ModifiedBy,this.Flagged,this.TransactionId,this.FaceValue,this.HasChange,this.HasConversation,this.HasAgentMsg,this.HasAdminMsg,this.Attachment,this.Reminder,this.Agents,this.HasOCR,this.PolicyAssociateId,this.HasRequiredDocuments,this.Phone,this.EmailAddress,this.ApprovedDate,this.ApprovedBy}); SmartsheetsLife.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ID = json['ID']; FirstName = json['FirstName']; LastName = json['LastName']; PolicyNumber = json['PolicyNumber']; PolicyType = json['PolicyType']; CPT = json['CPT']; AppDate = json['AppDate']; AgentName = json['AgentName']; AgentID = json['AgentID']; Phase = json['Phase']; Notes = json['Notes']; TransferAmount = json['TransferAmount']; AccountNumber = json['AccountNumber']; Deleted = json['Deleted']; ModifiedBy = json['ModifiedBy']; Flagged = json['Flagged']; TransactionId = json['TransactionId']; FaceValue = json['FaceValue']; HasChange = json['HasChange']; HasConversation = json['HasConversation']; HasAgentMsg = json['HasAgentMsg']; HasAdminMsg = json['HasAdminMsg']; Attachment = JsonConverters.fromJson(json['Attachment'],'List',context!); Reminder = JsonConverters.fromJson(json['Reminder'],'List',context!); Agents = json['Agents']; HasOCR = json['HasOCR']; PolicyAssociateId = json['PolicyAssociateId']; HasRequiredDocuments = json['HasRequiredDocuments']; Phone = json['Phone']; EmailAddress = json['EmailAddress']; ApprovedDate = json['ApprovedDate']; ApprovedBy = json['ApprovedBy']; return this; } Map toJson() => { 'ID': ID, 'FirstName': FirstName, 'LastName': LastName, 'PolicyNumber': PolicyNumber, 'PolicyType': PolicyType, 'CPT': CPT, 'AppDate': AppDate, 'AgentName': AgentName, 'AgentID': AgentID, 'Phase': Phase, 'Notes': Notes, 'TransferAmount': TransferAmount, 'AccountNumber': AccountNumber, 'Deleted': Deleted, 'ModifiedBy': ModifiedBy, 'Flagged': Flagged, 'TransactionId': TransactionId, 'FaceValue': FaceValue, 'HasChange': HasChange, 'HasConversation': HasConversation, 'HasAgentMsg': HasAgentMsg, 'HasAdminMsg': HasAdminMsg, 'Attachment': JsonConverters.toJson(Attachment,'List',context!), 'Reminder': JsonConverters.toJson(Reminder,'List',context!), 'Agents': Agents, 'HasOCR': HasOCR, 'PolicyAssociateId': PolicyAssociateId, 'HasRequiredDocuments': HasRequiredDocuments, 'Phone': Phone, 'EmailAddress': EmailAddress, 'ApprovedDate': ApprovedDate, 'ApprovedBy': ApprovedBy }; getTypeName() => "SmartsheetsLife"; TypeContext? context = _ctx; } class SmartsheetsFlow implements IConvertible { int? ID; String? FirstName; String? LastName; String? PolicyNumber; String? PolicyType; String? AppDate; String? AgentName; int? AgentID; String? SRAStartDate; String? Phase; String? ModalPremium; String? Frequency; String? AnnualPremium; String? District; String? SS; String? Carrier; String? Notes; String? TPA; bool? Flagged; bool? Deleted; String? ModifiedBy; String? TransactionId; bool? HasChange; bool? HasConversation; bool? HasAgentMsg; bool? HasAdminMsg; List? Attachment = []; List? Reminder = []; String? Agents; bool? HasOCR; String? PolicyAssociateId; bool? HasRequiredDocuments; String? Phone; String? EmailAddress; String? ApprovedDate; String? ApprovedBy; SmartsheetsFlow({this.ID,this.FirstName,this.LastName,this.PolicyNumber,this.PolicyType,this.AppDate,this.AgentName,this.AgentID,this.SRAStartDate,this.Phase,this.ModalPremium,this.Frequency,this.AnnualPremium,this.District,this.SS,this.Carrier,this.Notes,this.TPA,this.Flagged,this.Deleted,this.ModifiedBy,this.TransactionId,this.HasChange,this.HasConversation,this.HasAgentMsg,this.HasAdminMsg,this.Attachment,this.Reminder,this.Agents,this.HasOCR,this.PolicyAssociateId,this.HasRequiredDocuments,this.Phone,this.EmailAddress,this.ApprovedDate,this.ApprovedBy}); SmartsheetsFlow.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ID = json['ID']; FirstName = json['FirstName']; LastName = json['LastName']; PolicyNumber = json['PolicyNumber']; PolicyType = json['PolicyType']; AppDate = json['AppDate']; AgentName = json['AgentName']; AgentID = json['AgentID']; SRAStartDate = json['SRAStartDate']; Phase = json['Phase']; ModalPremium = json['ModalPremium']; Frequency = json['Frequency']; AnnualPremium = json['AnnualPremium']; District = json['District']; SS = json['SS']; Carrier = json['Carrier']; Notes = json['Notes']; TPA = json['TPA']; Flagged = json['Flagged']; Deleted = json['Deleted']; ModifiedBy = json['ModifiedBy']; TransactionId = json['TransactionId']; HasChange = json['HasChange']; HasConversation = json['HasConversation']; HasAgentMsg = json['HasAgentMsg']; HasAdminMsg = json['HasAdminMsg']; Attachment = JsonConverters.fromJson(json['Attachment'],'List',context!); Reminder = JsonConverters.fromJson(json['Reminder'],'List',context!); Agents = json['Agents']; HasOCR = json['HasOCR']; PolicyAssociateId = json['PolicyAssociateId']; HasRequiredDocuments = json['HasRequiredDocuments']; Phone = json['Phone']; EmailAddress = json['EmailAddress']; ApprovedDate = json['ApprovedDate']; ApprovedBy = json['ApprovedBy']; return this; } Map toJson() => { 'ID': ID, 'FirstName': FirstName, 'LastName': LastName, 'PolicyNumber': PolicyNumber, 'PolicyType': PolicyType, 'AppDate': AppDate, 'AgentName': AgentName, 'AgentID': AgentID, 'SRAStartDate': SRAStartDate, 'Phase': Phase, 'ModalPremium': ModalPremium, 'Frequency': Frequency, 'AnnualPremium': AnnualPremium, 'District': District, 'SS': SS, 'Carrier': Carrier, 'Notes': Notes, 'TPA': TPA, 'Flagged': Flagged, 'Deleted': Deleted, 'ModifiedBy': ModifiedBy, 'TransactionId': TransactionId, 'HasChange': HasChange, 'HasConversation': HasConversation, 'HasAgentMsg': HasAgentMsg, 'HasAdminMsg': HasAdminMsg, 'Attachment': JsonConverters.toJson(Attachment,'List',context!), 'Reminder': JsonConverters.toJson(Reminder,'List',context!), 'Agents': Agents, 'HasOCR': HasOCR, 'PolicyAssociateId': PolicyAssociateId, 'HasRequiredDocuments': HasRequiredDocuments, 'Phone': Phone, 'EmailAddress': EmailAddress, 'ApprovedDate': ApprovedDate, 'ApprovedBy': ApprovedBy }; getTypeName() => "SmartsheetsFlow"; TypeContext? context = _ctx; } class SmartsheetsTransfer implements IConvertible { int? ID; bool? Flagged; String? Phase; String? FirstName; String? LastName; String? PolicyNumber; String? PolicyType; String? AppDate; String? AgentName; int? AgentID; String? RegionalOffice; String? TransferAmount; String? TransferringCompany; String? AccountNumber; String? SS; String? Notes; bool? Deleted; String? ModifiedBy; String? TransactionId; bool? HasChange; bool? HasConversation; bool? HasAgentMsg; bool? HasAdminMsg; List? Attachment = []; List? Reminder = []; String? Agents; bool? HasOCR; String? PolicyAssociateId; bool? HasRequiredDocuments; String? Phone; String? EmailAddress; String? ApprovedDate; String? ApprovedBy; SmartsheetsTransfer({this.ID,this.Flagged,this.Phase,this.FirstName,this.LastName,this.PolicyNumber,this.PolicyType,this.AppDate,this.AgentName,this.AgentID,this.RegionalOffice,this.TransferAmount,this.TransferringCompany,this.AccountNumber,this.SS,this.Notes,this.Deleted,this.ModifiedBy,this.TransactionId,this.HasChange,this.HasConversation,this.HasAgentMsg,this.HasAdminMsg,this.Attachment,this.Reminder,this.Agents,this.HasOCR,this.PolicyAssociateId,this.HasRequiredDocuments,this.Phone,this.EmailAddress,this.ApprovedDate,this.ApprovedBy}); SmartsheetsTransfer.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ID = json['ID']; Flagged = json['Flagged']; Phase = json['Phase']; FirstName = json['FirstName']; LastName = json['LastName']; PolicyNumber = json['PolicyNumber']; PolicyType = json['PolicyType']; AppDate = json['AppDate']; AgentName = json['AgentName']; AgentID = json['AgentID']; RegionalOffice = json['RegionalOffice']; TransferAmount = json['TransferAmount']; TransferringCompany = json['TransferringCompany']; AccountNumber = json['AccountNumber']; SS = json['SS']; Notes = json['Notes']; Deleted = json['Deleted']; ModifiedBy = json['ModifiedBy']; TransactionId = json['TransactionId']; HasChange = json['HasChange']; HasConversation = json['HasConversation']; HasAgentMsg = json['HasAgentMsg']; HasAdminMsg = json['HasAdminMsg']; Attachment = JsonConverters.fromJson(json['Attachment'],'List',context!); Reminder = JsonConverters.fromJson(json['Reminder'],'List',context!); Agents = json['Agents']; HasOCR = json['HasOCR']; PolicyAssociateId = json['PolicyAssociateId']; HasRequiredDocuments = json['HasRequiredDocuments']; Phone = json['Phone']; EmailAddress = json['EmailAddress']; ApprovedDate = json['ApprovedDate']; ApprovedBy = json['ApprovedBy']; return this; } Map toJson() => { 'ID': ID, 'Flagged': Flagged, 'Phase': Phase, 'FirstName': FirstName, 'LastName': LastName, 'PolicyNumber': PolicyNumber, 'PolicyType': PolicyType, 'AppDate': AppDate, 'AgentName': AgentName, 'AgentID': AgentID, 'RegionalOffice': RegionalOffice, 'TransferAmount': TransferAmount, 'TransferringCompany': TransferringCompany, 'AccountNumber': AccountNumber, 'SS': SS, 'Notes': Notes, 'Deleted': Deleted, 'ModifiedBy': ModifiedBy, 'TransactionId': TransactionId, 'HasChange': HasChange, 'HasConversation': HasConversation, 'HasAgentMsg': HasAgentMsg, 'HasAdminMsg': HasAdminMsg, 'Attachment': JsonConverters.toJson(Attachment,'List',context!), 'Reminder': JsonConverters.toJson(Reminder,'List',context!), 'Agents': Agents, 'HasOCR': HasOCR, 'PolicyAssociateId': PolicyAssociateId, 'HasRequiredDocuments': HasRequiredDocuments, 'Phone': Phone, 'EmailAddress': EmailAddress, 'ApprovedDate': ApprovedDate, 'ApprovedBy': ApprovedBy }; getTypeName() => "SmartsheetsTransfer"; TypeContext? context = _ctx; } class SmartsheetsIssuedClosed implements IConvertible { String? Type; int? ID; bool? Flagged; String? Phase; String? FirstName; String? LastName; String? PolicyNumber; String? AgentName; String? Notes; bool? Deleted; String? ModifiedBy; bool? HasChange; bool? HasConversation; bool? HasAgentMsg; bool? HasAdminMsg; List? Attachment = []; List? Reminder = []; bool? HasOCR; String? AppDate; String? TransactionId; SmartsheetsIssuedClosed({this.Type,this.ID,this.Flagged,this.Phase,this.FirstName,this.LastName,this.PolicyNumber,this.AgentName,this.Notes,this.Deleted,this.ModifiedBy,this.HasChange,this.HasConversation,this.HasAgentMsg,this.HasAdminMsg,this.Attachment,this.Reminder,this.HasOCR,this.AppDate,this.TransactionId}); SmartsheetsIssuedClosed.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Type = json['Type']; ID = json['ID']; Flagged = json['Flagged']; Phase = json['Phase']; FirstName = json['FirstName']; LastName = json['LastName']; PolicyNumber = json['PolicyNumber']; AgentName = json['AgentName']; Notes = json['Notes']; Deleted = json['Deleted']; ModifiedBy = json['ModifiedBy']; HasChange = json['HasChange']; HasConversation = json['HasConversation']; HasAgentMsg = json['HasAgentMsg']; HasAdminMsg = json['HasAdminMsg']; Attachment = JsonConverters.fromJson(json['Attachment'],'List',context!); Reminder = JsonConverters.fromJson(json['Reminder'],'List',context!); HasOCR = json['HasOCR']; AppDate = json['AppDate']; TransactionId = json['TransactionId']; return this; } Map toJson() => { 'Type': Type, 'ID': ID, 'Flagged': Flagged, 'Phase': Phase, 'FirstName': FirstName, 'LastName': LastName, 'PolicyNumber': PolicyNumber, 'AgentName': AgentName, 'Notes': Notes, 'Deleted': Deleted, 'ModifiedBy': ModifiedBy, 'HasChange': HasChange, 'HasConversation': HasConversation, 'HasAgentMsg': HasAgentMsg, 'HasAdminMsg': HasAdminMsg, 'Attachment': JsonConverters.toJson(Attachment,'List',context!), 'Reminder': JsonConverters.toJson(Reminder,'List',context!), 'HasOCR': HasOCR, 'AppDate': AppDate, 'TransactionId': TransactionId }; getTypeName() => "SmartsheetsIssuedClosed"; TypeContext? context = _ctx; } class SmartsheetsResponse implements IConvertible { ResponseStatus? ResponseStatus; List? Life = []; List? Flow = []; List? Transfer = []; List? IssuedClosed = []; SmartsheetsResponse({this.ResponseStatus,this.Life,this.Flow,this.Transfer,this.IssuedClosed}); SmartsheetsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Life = JsonConverters.fromJson(json['Life'],'List',context!); Flow = JsonConverters.fromJson(json['Flow'],'List',context!); Transfer = JsonConverters.fromJson(json['Transfer'],'List',context!); IssuedClosed = JsonConverters.fromJson(json['IssuedClosed'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Life': JsonConverters.toJson(Life,'List',context!), 'Flow': JsonConverters.toJson(Flow,'List',context!), 'Transfer': JsonConverters.toJson(Transfer,'List',context!), 'IssuedClosed': JsonConverters.toJson(IssuedClosed,'List',context!) }; getTypeName() => "SmartsheetsResponse"; TypeContext? context = _ctx; } // @Route("/v1/Smartsheets", "GET") // @Route("/v1/Smartsheets/{AgentID}", "GET") // @Route("/v1/Smartsheets/{AgentID}/{SheetType}", "GET") class SmartsheetsRequest implements IReturn, IConvertible, IGet { int? AgentID; String? SheetType; SmartsheetsRequest({this.AgentID,this.SheetType}); SmartsheetsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AgentID = json['AgentID']; SheetType = json['SheetType']; return this; } Map toJson() => { 'AgentID': AgentID, 'SheetType': SheetType }; createResponse() => SmartsheetsResponse(); getResponseTypeName() => "SmartsheetsResponse"; getTypeName() => "SmartsheetsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'Attachment': TypeInfo(TypeOf.Class, create:() => Attachment()), 'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)), 'Reminder': TypeInfo(TypeOf.Class, create:() => Reminder()), 'SmartsheetsLife': TypeInfo(TypeOf.Class, create:() => SmartsheetsLife()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SmartsheetsFlow': TypeInfo(TypeOf.Class, create:() => SmartsheetsFlow()), 'SmartsheetsTransfer': TypeInfo(TypeOf.Class, create:() => SmartsheetsTransfer()), 'SmartsheetsIssuedClosed': TypeInfo(TypeOf.Class, create:() => SmartsheetsIssuedClosed()), 'SmartsheetsResponse': TypeInfo(TypeOf.Class, create:() => SmartsheetsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SmartsheetsRequest': TypeInfo(TypeOf.Class, create:() => SmartsheetsRequest()), });