/* Options: Date: 2025-12-06 08:40:00 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: AgentCategorizationRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class AgentCategorization implements IConvertible { int? AgentId; String? AgentFirstName; String? AgentLastName; int? ContactId; String? ContactGUID; String? ContactFirstName; String? ContactLastName; int? ContactStatus; String? ContactStatusName; int? ContactCategory; String? ContactCategoryName; String? ContactEmail; String? ContactPhone; bool? IsShared; int? WritingAgentId; bool? IsWritingAgent; String? WritingAgentName; AgentCategorization({this.AgentId,this.AgentFirstName,this.AgentLastName,this.ContactId,this.ContactGUID,this.ContactFirstName,this.ContactLastName,this.ContactStatus,this.ContactStatusName,this.ContactCategory,this.ContactCategoryName,this.ContactEmail,this.ContactPhone,this.IsShared,this.WritingAgentId,this.IsWritingAgent,this.WritingAgentName}); AgentCategorization.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AgentId = json['AgentId']; AgentFirstName = json['AgentFirstName']; AgentLastName = json['AgentLastName']; ContactId = json['ContactId']; ContactGUID = json['ContactGUID']; ContactFirstName = json['ContactFirstName']; ContactLastName = json['ContactLastName']; ContactStatus = json['ContactStatus']; ContactStatusName = json['ContactStatusName']; ContactCategory = json['ContactCategory']; ContactCategoryName = json['ContactCategoryName']; ContactEmail = json['ContactEmail']; ContactPhone = json['ContactPhone']; IsShared = json['IsShared']; WritingAgentId = json['WritingAgentId']; IsWritingAgent = json['IsWritingAgent']; WritingAgentName = json['WritingAgentName']; return this; } Map toJson() => { 'AgentId': AgentId, 'AgentFirstName': AgentFirstName, 'AgentLastName': AgentLastName, 'ContactId': ContactId, 'ContactGUID': ContactGUID, 'ContactFirstName': ContactFirstName, 'ContactLastName': ContactLastName, 'ContactStatus': ContactStatus, 'ContactStatusName': ContactStatusName, 'ContactCategory': ContactCategory, 'ContactCategoryName': ContactCategoryName, 'ContactEmail': ContactEmail, 'ContactPhone': ContactPhone, 'IsShared': IsShared, 'WritingAgentId': WritingAgentId, 'IsWritingAgent': IsWritingAgent, 'WritingAgentName': WritingAgentName }; getTypeName() => "AgentCategorization"; TypeContext? context = _ctx; } class AgentCategorizationResponse implements IConvertible { ResponseStatus? ResponseStatus; List? Contacts = []; AgentCategorizationResponse({this.ResponseStatus,this.Contacts}); AgentCategorizationResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Contacts = JsonConverters.fromJson(json['Contacts'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Contacts': JsonConverters.toJson(Contacts,'List',context!) }; getTypeName() => "AgentCategorizationResponse"; TypeContext? context = _ctx; } // @Route("/v1/Report/AgentCategorization/{AgentId}/", "GET,OPTIONS") // @Route("/v1/Report/AgentCategorization/{AgentId}/{ContactCategoryId}", "GET,OPTIONS") class AgentCategorizationRequest implements IReturn, IConvertible, IGet { int? AgentId; int? ContactCategoryId; AgentCategorizationRequest({this.AgentId,this.ContactCategoryId}); AgentCategorizationRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AgentId = json['AgentId']; ContactCategoryId = json['ContactCategoryId']; return this; } Map toJson() => { 'AgentId': AgentId, 'ContactCategoryId': ContactCategoryId }; createResponse() => AgentCategorizationResponse(); getResponseTypeName() => "AgentCategorizationResponse"; getTypeName() => "AgentCategorizationRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'AgentCategorization': TypeInfo(TypeOf.Class, create:() => AgentCategorization()), 'AgentCategorizationResponse': TypeInfo(TypeOf.Class, create:() => AgentCategorizationResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'AgentCategorizationRequest': TypeInfo(TypeOf.Class, create:() => AgentCategorizationRequest()), });