/* Options: Date: 2025-12-06 07:25:32 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: ProjectMilestonesRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class ProjectMilestone implements IConvertible { int? MilestoneID; int? ProjectID; String? MilestoneName; DateTime? TargetDate; DateTime? ActualDate; String? MilestoneStatus; ProjectMilestone({this.MilestoneID,this.ProjectID,this.MilestoneName,this.TargetDate,this.ActualDate,this.MilestoneStatus}); ProjectMilestone.fromJson(Map json) { fromMap(json); } fromMap(Map json) { MilestoneID = json['MilestoneID']; ProjectID = json['ProjectID']; MilestoneName = json['MilestoneName']; TargetDate = JsonConverters.fromJson(json['TargetDate'],'DateTime',context!); ActualDate = JsonConverters.fromJson(json['ActualDate'],'DateTime',context!); MilestoneStatus = json['MilestoneStatus']; return this; } Map toJson() => { 'MilestoneID': MilestoneID, 'ProjectID': ProjectID, 'MilestoneName': MilestoneName, 'TargetDate': JsonConverters.toJson(TargetDate,'DateTime',context!), 'ActualDate': JsonConverters.toJson(ActualDate,'DateTime',context!), 'MilestoneStatus': MilestoneStatus }; getTypeName() => "ProjectMilestone"; TypeContext? context = _ctx; } class ProjectMilestonesResponse implements IConvertible { ResponseStatus? ResponseStatus; List? ProjectMilestones = []; ProjectMilestonesResponse({this.ResponseStatus,this.ProjectMilestones}); ProjectMilestonesResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); ProjectMilestones = JsonConverters.fromJson(json['ProjectMilestones'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'ProjectMilestones': JsonConverters.toJson(ProjectMilestones,'List',context!) }; getTypeName() => "ProjectMilestonesResponse"; TypeContext? context = _ctx; } // @Route("/v1/ProjectMilestones", "GET,POST,PUT,DELETE,OPTIONS") // @Route("/v1/ProjectMilestones/{MilestoneID}", "GET,POST,PUT,DELETE,OPTIONS") class ProjectMilestonesRequest implements IReturn, IConvertible, IPost { int? MilestoneID; List? ProjectMilestones = []; ProjectMilestonesRequest({this.MilestoneID,this.ProjectMilestones}); ProjectMilestonesRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { MilestoneID = json['MilestoneID']; ProjectMilestones = JsonConverters.fromJson(json['ProjectMilestones'],'List',context!); return this; } Map toJson() => { 'MilestoneID': MilestoneID, 'ProjectMilestones': JsonConverters.toJson(ProjectMilestones,'List',context!) }; createResponse() => ProjectMilestonesResponse(); getResponseTypeName() => "ProjectMilestonesResponse"; getTypeName() => "ProjectMilestonesRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'ProjectMilestone': TypeInfo(TypeOf.Class, create:() => ProjectMilestone()), 'ProjectMilestonesResponse': TypeInfo(TypeOf.Class, create:() => ProjectMilestonesResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ProjectMilestonesRequest': TypeInfo(TypeOf.Class, create:() => ProjectMilestonesRequest()), });