/* Options: Date: 2026-06-22 22:49: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: ServiceTaskRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ServiceTask implements IConvertible { int? ServiceTaskID; String? ServiceTaskUID; String? TenantId; String? Name; String? Category; int? DefaultDurationMinutes; int? SortOrder; bool? Active; String? CreatedBy; DateTime? CreatedAt; DateTime? UpdatedAt; ServiceTask({this.ServiceTaskID,this.ServiceTaskUID,this.TenantId,this.Name,this.Category,this.DefaultDurationMinutes,this.SortOrder,this.Active,this.CreatedBy,this.CreatedAt,this.UpdatedAt}); ServiceTask.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ServiceTaskID = json['ServiceTaskID']; ServiceTaskUID = json['ServiceTaskUID']; TenantId = json['TenantId']; Name = json['Name']; Category = json['Category']; DefaultDurationMinutes = json['DefaultDurationMinutes']; SortOrder = json['SortOrder']; Active = json['Active']; CreatedBy = json['CreatedBy']; CreatedAt = JsonConverters.fromJson(json['CreatedAt'],'DateTime',context!); UpdatedAt = JsonConverters.fromJson(json['UpdatedAt'],'DateTime',context!); return this; } Map toJson() => { 'ServiceTaskID': ServiceTaskID, 'ServiceTaskUID': ServiceTaskUID, 'TenantId': TenantId, 'Name': Name, 'Category': Category, 'DefaultDurationMinutes': DefaultDurationMinutes, 'SortOrder': SortOrder, 'Active': Active, 'CreatedBy': CreatedBy, 'CreatedAt': JsonConverters.toJson(CreatedAt,'DateTime',context!), 'UpdatedAt': JsonConverters.toJson(UpdatedAt,'DateTime',context!) }; getTypeName() => "ServiceTask"; TypeContext? context = _ctx; } class ServiceTaskResponse implements IConvertible { List? ServiceTasks = []; ResponseStatus? ResponseStatus; ServiceTaskResponse({this.ServiceTasks,this.ResponseStatus}); ServiceTaskResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ServiceTasks = JsonConverters.fromJson(json['ServiceTasks'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'ServiceTasks': JsonConverters.toJson(ServiceTasks,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "ServiceTaskResponse"; TypeContext? context = _ctx; } // @Route("/v1/servicetask", "GET,POST,PUT,OPTIONS") // @Route("/v1/servicetask/{ServiceTaskID}", "GET,DELETE,OPTIONS") class ServiceTaskRequest implements IReturn, IConvertible, IGet { int? ServiceTaskID; ServiceTask? Task; ServiceTaskRequest({this.ServiceTaskID,this.Task}); ServiceTaskRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ServiceTaskID = json['ServiceTaskID']; Task = JsonConverters.fromJson(json['Task'],'ServiceTask',context!); return this; } Map toJson() => { 'ServiceTaskID': ServiceTaskID, 'Task': JsonConverters.toJson(Task,'ServiceTask',context!) }; createResponse() => ServiceTaskResponse(); getResponseTypeName() => "ServiceTaskResponse"; getTypeName() => "ServiceTaskRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'ServiceTask': TypeInfo(TypeOf.Class, create:() => ServiceTask()), 'ServiceTaskResponse': TypeInfo(TypeOf.Class, create:() => ServiceTaskResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ServiceTaskRequest': TypeInfo(TypeOf.Class, create:() => ServiceTaskRequest()), });