/* Options: Date: 2026-06-23 00:06:46 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: PmResourcesRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class PmResCommitment implements IConvertible { String? ProjectName; String? JobName; String? StartDate; String? EndDate; PmResCommitment({this.ProjectName,this.JobName,this.StartDate,this.EndDate}); PmResCommitment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ProjectName = json['ProjectName']; JobName = json['JobName']; StartDate = json['StartDate']; EndDate = json['EndDate']; return this; } Map toJson() => { 'ProjectName': ProjectName, 'JobName': JobName, 'StartDate': StartDate, 'EndDate': EndDate }; getTypeName() => "PmResCommitment"; TypeContext? context = _ctx; } class PmResEquipment implements IConvertible { int? EquipmentID; String? Name; String? EquipmentType; String? SerialNumber; int? JobCount; bool? Overbooked; String? MaintenanceState; List? Commitments = []; PmResEquipment({this.EquipmentID,this.Name,this.EquipmentType,this.SerialNumber,this.JobCount,this.Overbooked,this.MaintenanceState,this.Commitments}); PmResEquipment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { EquipmentID = json['EquipmentID']; Name = json['Name']; EquipmentType = json['EquipmentType']; SerialNumber = json['SerialNumber']; JobCount = json['JobCount']; Overbooked = json['Overbooked']; MaintenanceState = json['MaintenanceState']; Commitments = JsonConverters.fromJson(json['Commitments'],'List',context!); return this; } Map toJson() => { 'EquipmentID': EquipmentID, 'Name': Name, 'EquipmentType': EquipmentType, 'SerialNumber': SerialNumber, 'JobCount': JobCount, 'Overbooked': Overbooked, 'MaintenanceState': MaintenanceState, 'Commitments': JsonConverters.toJson(Commitments,'List',context!) }; getTypeName() => "PmResEquipment"; TypeContext? context = _ctx; } class PmResMaterial implements IConvertible { int? MaterialID; String? Name; String? MaterialType; int? OnHand; int? NeededByJobs; int? QtyNeeded; bool? Shortfall; PmResMaterial({this.MaterialID,this.Name,this.MaterialType,this.OnHand,this.NeededByJobs,this.QtyNeeded,this.Shortfall}); PmResMaterial.fromJson(Map json) { fromMap(json); } fromMap(Map json) { MaterialID = json['MaterialID']; Name = json['Name']; MaterialType = json['MaterialType']; OnHand = json['OnHand']; NeededByJobs = json['NeededByJobs']; QtyNeeded = json['QtyNeeded']; Shortfall = json['Shortfall']; return this; } Map toJson() => { 'MaterialID': MaterialID, 'Name': Name, 'MaterialType': MaterialType, 'OnHand': OnHand, 'NeededByJobs': NeededByJobs, 'QtyNeeded': QtyNeeded, 'Shortfall': Shortfall }; getTypeName() => "PmResMaterial"; TypeContext? context = _ctx; } class PmResourcesResponse implements IConvertible { String? FromDate; String? ToDate; int? OverbookedCount; int? CommittedCount; int? ShortfallCount; List? Equipment = []; List? Materials = []; ResponseStatus? ResponseStatus; PmResourcesResponse({this.FromDate,this.ToDate,this.OverbookedCount,this.CommittedCount,this.ShortfallCount,this.Equipment,this.Materials,this.ResponseStatus}); PmResourcesResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { FromDate = json['FromDate']; ToDate = json['ToDate']; OverbookedCount = json['OverbookedCount']; CommittedCount = json['CommittedCount']; ShortfallCount = json['ShortfallCount']; Equipment = JsonConverters.fromJson(json['Equipment'],'List',context!); Materials = JsonConverters.fromJson(json['Materials'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'FromDate': FromDate, 'ToDate': ToDate, 'OverbookedCount': OverbookedCount, 'CommittedCount': CommittedCount, 'ShortfallCount': ShortfallCount, 'Equipment': JsonConverters.toJson(Equipment,'List',context!), 'Materials': JsonConverters.toJson(Materials,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "PmResourcesResponse"; TypeContext? context = _ctx; } // @Route("/v1/pm/resources", "GET,OPTIONS") class PmResourcesRequest implements IReturn, IConvertible, IGet { int? Days; PmResourcesRequest({this.Days}); PmResourcesRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Days = json['Days']; return this; } Map toJson() => { 'Days': Days }; createResponse() => PmResourcesResponse(); getResponseTypeName() => "PmResourcesResponse"; getTypeName() => "PmResourcesRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'PmResCommitment': TypeInfo(TypeOf.Class, create:() => PmResCommitment()), 'PmResEquipment': TypeInfo(TypeOf.Class, create:() => PmResEquipment()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'PmResMaterial': TypeInfo(TypeOf.Class, create:() => PmResMaterial()), 'PmResourcesResponse': TypeInfo(TypeOf.Class, create:() => PmResourcesResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'PmResourcesRequest': TypeInfo(TypeOf.Class, create:() => PmResourcesRequest()), });