/* Options: Date: 2025-12-06 11:46:20 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: AllAgentTaskRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class AgentTask implements IConvertible { String? TaskId; String? Description; DateTime? DueDate; int? AssignedToAgentId; int? RelatedToAgentId; int? CreatedBy; DateTime? DateCreated; DateTime? DateCompleted; int? CompletedBy; DateTime? DateDeleted; int? DeletedBy; AgentTask({this.TaskId,this.Description,this.DueDate,this.AssignedToAgentId,this.RelatedToAgentId,this.CreatedBy,this.DateCreated,this.DateCompleted,this.CompletedBy,this.DateDeleted,this.DeletedBy}); AgentTask.fromJson(Map json) { fromMap(json); } fromMap(Map json) { TaskId = json['TaskId']; Description = json['Description']; DueDate = JsonConverters.fromJson(json['DueDate'],'DateTime',context!); AssignedToAgentId = json['AssignedToAgentId']; RelatedToAgentId = json['RelatedToAgentId']; CreatedBy = json['CreatedBy']; DateCreated = JsonConverters.fromJson(json['DateCreated'],'DateTime',context!); DateCompleted = JsonConverters.fromJson(json['DateCompleted'],'DateTime',context!); CompletedBy = json['CompletedBy']; DateDeleted = JsonConverters.fromJson(json['DateDeleted'],'DateTime',context!); DeletedBy = json['DeletedBy']; return this; } Map toJson() => { 'TaskId': TaskId, 'Description': Description, 'DueDate': JsonConverters.toJson(DueDate,'DateTime',context!), 'AssignedToAgentId': AssignedToAgentId, 'RelatedToAgentId': RelatedToAgentId, 'CreatedBy': CreatedBy, 'DateCreated': JsonConverters.toJson(DateCreated,'DateTime',context!), 'DateCompleted': JsonConverters.toJson(DateCompleted,'DateTime',context!), 'CompletedBy': CompletedBy, 'DateDeleted': JsonConverters.toJson(DateDeleted,'DateTime',context!), 'DeletedBy': DeletedBy }; getTypeName() => "AgentTask"; TypeContext? context = _ctx; } class AgentTaskExtended extends AgentTask implements IConvertible { String? AssignedToName; String? RelatedToName; AgentTaskExtended({this.AssignedToName,this.RelatedToName}); AgentTaskExtended.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); AssignedToName = json['AssignedToName']; RelatedToName = json['RelatedToName']; return this; } Map toJson() => super.toJson()..addAll({ 'AssignedToName': AssignedToName, 'RelatedToName': RelatedToName }); getTypeName() => "AgentTaskExtended"; TypeContext? context = _ctx; } class AllAgentTaskResponse implements IConvertible { ResponseStatus? ResponseStatus; List? Task = []; AllAgentTaskResponse({this.ResponseStatus,this.Task}); AllAgentTaskResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Task = JsonConverters.fromJson(json['Task'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Task': JsonConverters.toJson(Task,'List',context!) }; getTypeName() => "AllAgentTaskResponse"; TypeContext? context = _ctx; } // @Route("/v1/AllAgentTask", "GET,POST,PUT,OPTIONS") class AllAgentTaskRequest implements IReturn, IConvertible, IGet { AllAgentTaskRequest(); AllAgentTaskRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => AllAgentTaskResponse(); getResponseTypeName() => "AllAgentTaskResponse"; getTypeName() => "AllAgentTaskRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'AgentTask': TypeInfo(TypeOf.Class, create:() => AgentTask()), 'AgentTaskExtended': TypeInfo(TypeOf.Class, create:() => AgentTaskExtended()), 'AllAgentTaskResponse': TypeInfo(TypeOf.Class, create:() => AllAgentTaskResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'AllAgentTaskRequest': TypeInfo(TypeOf.Class, create:() => AllAgentTaskRequest()), });