/* Options: Date: 2025-12-06 06: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: AgentHistoryRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class AgentHistory implements IConvertible { int? AgentHistoryId; int? SubAgentId; int? EventId; int? AgentId; DateTime? EventDate; DateTime? DateCreated; String? Note; AgentHistory({this.AgentHistoryId,this.SubAgentId,this.EventId,this.AgentId,this.EventDate,this.DateCreated,this.Note}); AgentHistory.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AgentHistoryId = json['AgentHistoryId']; SubAgentId = json['SubAgentId']; EventId = json['EventId']; AgentId = json['AgentId']; EventDate = JsonConverters.fromJson(json['EventDate'],'DateTime',context!); DateCreated = JsonConverters.fromJson(json['DateCreated'],'DateTime',context!); Note = json['Note']; return this; } Map toJson() => { 'AgentHistoryId': AgentHistoryId, 'SubAgentId': SubAgentId, 'EventId': EventId, 'AgentId': AgentId, 'EventDate': JsonConverters.toJson(EventDate,'DateTime',context!), 'DateCreated': JsonConverters.toJson(DateCreated,'DateTime',context!), 'Note': Note }; getTypeName() => "AgentHistory"; TypeContext? context = _ctx; } class AgentHistoryResponse implements IConvertible { ResponseStatus? ResponseStatus; List? AgentHistory = []; AgentHistoryResponse({this.ResponseStatus,this.AgentHistory}); AgentHistoryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); AgentHistory = JsonConverters.fromJson(json['AgentHistory'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'AgentHistory': JsonConverters.toJson(AgentHistory,'List',context!) }; getTypeName() => "AgentHistoryResponse"; TypeContext? context = _ctx; } // @Route("/v1/AgentHistory", "GET,POST,PUT,DELETE,OPTIONS") class AgentHistoryRequest implements IReturn, IConvertible, IPost { List? AgentHistory = []; AgentHistoryRequest({this.AgentHistory}); AgentHistoryRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AgentHistory = JsonConverters.fromJson(json['AgentHistory'],'List',context!); return this; } Map toJson() => { 'AgentHistory': JsonConverters.toJson(AgentHistory,'List',context!) }; createResponse() => AgentHistoryResponse(); getResponseTypeName() => "AgentHistoryResponse"; getTypeName() => "AgentHistoryRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'AgentHistory': TypeInfo(TypeOf.Class, create:() => AgentHistory()), 'AgentHistoryResponse': TypeInfo(TypeOf.Class, create:() => AgentHistoryResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'AgentHistoryRequest': TypeInfo(TypeOf.Class, create:() => AgentHistoryRequest()), });