/* Options: Date: 2025-12-06 07:30:10 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: AgentTaskRequest.* //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 AgentTaskResponse implements IConvertible { ResponseStatus? ResponseStatus; List? Task = []; AgentTaskResponse({this.ResponseStatus,this.Task}); AgentTaskResponse.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() => "AgentTaskResponse"; TypeContext? context = _ctx; } // @Route("/v1/AgentTask", "GET,POST,PUT,OPTIONS") // @Route("/v1/AgentTask/{TaskId}", "DELETE,OPTIONS") class AgentTaskRequest implements IReturn, IConvertible, IPost { AgentTaskExtended? Task; String? TaskId; AgentTaskRequest({this.Task,this.TaskId}); AgentTaskRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Task = JsonConverters.fromJson(json['Task'],'AgentTaskExtended',context!); TaskId = json['TaskId']; return this; } Map toJson() => { 'Task': JsonConverters.toJson(Task,'AgentTaskExtended',context!), 'TaskId': TaskId }; createResponse() => AgentTaskResponse(); getResponseTypeName() => "AgentTaskResponse"; getTypeName() => "AgentTaskRequest"; 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()), 'AgentTaskResponse': TypeInfo(TypeOf.Class, create:() => AgentTaskResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'AgentTaskRequest': TypeInfo(TypeOf.Class, create:() => AgentTaskRequest()), });