/* Options: Date: 2026-08-01 02:22:59 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: SamGovWdImportRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ProjectWageDetermination implements IConvertible { int? ProjectWageDeterminationID; String? ProjectWageDeterminationUID; int? ProjectID; String? DeterminationNo; String? DeterminationType; DateTime? EffectiveFrom; DateTime? EffectiveTo; bool? IsDefault; int? SortOrder; String? CreatedBy; DateTime? CreatedAt; DateTime? UpdatedAt; ProjectWageDetermination({this.ProjectWageDeterminationID,this.ProjectWageDeterminationUID,this.ProjectID,this.DeterminationNo,this.DeterminationType,this.EffectiveFrom,this.EffectiveTo,this.IsDefault,this.SortOrder,this.CreatedBy,this.CreatedAt,this.UpdatedAt}); ProjectWageDetermination.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ProjectWageDeterminationID = json['ProjectWageDeterminationID']; ProjectWageDeterminationUID = json['ProjectWageDeterminationUID']; ProjectID = json['ProjectID']; DeterminationNo = json['DeterminationNo']; DeterminationType = json['DeterminationType']; EffectiveFrom = JsonConverters.fromJson(json['EffectiveFrom'],'DateTime',context!); EffectiveTo = JsonConverters.fromJson(json['EffectiveTo'],'DateTime',context!); IsDefault = json['IsDefault']; SortOrder = json['SortOrder']; CreatedBy = json['CreatedBy']; CreatedAt = JsonConverters.fromJson(json['CreatedAt'],'DateTime',context!); UpdatedAt = JsonConverters.fromJson(json['UpdatedAt'],'DateTime',context!); return this; } Map toJson() => { 'ProjectWageDeterminationID': ProjectWageDeterminationID, 'ProjectWageDeterminationUID': ProjectWageDeterminationUID, 'ProjectID': ProjectID, 'DeterminationNo': DeterminationNo, 'DeterminationType': DeterminationType, 'EffectiveFrom': JsonConverters.toJson(EffectiveFrom,'DateTime',context!), 'EffectiveTo': JsonConverters.toJson(EffectiveTo,'DateTime',context!), 'IsDefault': IsDefault, 'SortOrder': SortOrder, 'CreatedBy': CreatedBy, 'CreatedAt': JsonConverters.toJson(CreatedAt,'DateTime',context!), 'UpdatedAt': JsonConverters.toJson(UpdatedAt,'DateTime',context!) }; getTypeName() => "ProjectWageDetermination"; TypeContext? context = _ctx; } class SamGovImportResult implements IConvertible { String? WdNumber; int? Revision; int? ProjectWageDeterminationID; int? ClassificationsImported; String? EffectiveFrom; SamGovImportResult({this.WdNumber,this.Revision,this.ProjectWageDeterminationID,this.ClassificationsImported,this.EffectiveFrom}); SamGovImportResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { WdNumber = json['WdNumber']; Revision = json['Revision']; ProjectWageDeterminationID = json['ProjectWageDeterminationID']; ClassificationsImported = json['ClassificationsImported']; EffectiveFrom = json['EffectiveFrom']; return this; } Map toJson() => { 'WdNumber': WdNumber, 'Revision': Revision, 'ProjectWageDeterminationID': ProjectWageDeterminationID, 'ClassificationsImported': ClassificationsImported, 'EffectiveFrom': EffectiveFrom }; getTypeName() => "SamGovImportResult"; TypeContext? context = _ctx; } class SamGovWdImportResponse implements IConvertible { ResponseStatus? ResponseStatus; SamGovImportResult? Result; List? Determinations = []; SamGovWdImportResponse({this.ResponseStatus,this.Result,this.Determinations}); SamGovWdImportResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Result = JsonConverters.fromJson(json['Result'],'SamGovImportResult',context!); Determinations = JsonConverters.fromJson(json['Determinations'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Result': JsonConverters.toJson(Result,'SamGovImportResult',context!), 'Determinations': JsonConverters.toJson(Determinations,'List',context!) }; getTypeName() => "SamGovWdImportResponse"; TypeContext? context = _ctx; } // @Route("/v1/projects/{ProjectID}/wage-determinations/samgov-import", "POST,OPTIONS") class SamGovWdImportRequest implements IReturn, IConvertible, IPost { int? ProjectID; String? WdNumber; int? Revision; SamGovWdImportRequest({this.ProjectID,this.WdNumber,this.Revision}); SamGovWdImportRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ProjectID = json['ProjectID']; WdNumber = json['WdNumber']; Revision = json['Revision']; return this; } Map toJson() => { 'ProjectID': ProjectID, 'WdNumber': WdNumber, 'Revision': Revision }; createResponse() => SamGovWdImportResponse(); getResponseTypeName() => "SamGovWdImportResponse"; getTypeName() => "SamGovWdImportRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'ProjectWageDetermination': TypeInfo(TypeOf.Class, create:() => ProjectWageDetermination()), 'SamGovImportResult': TypeInfo(TypeOf.Class, create:() => SamGovImportResult()), 'SamGovWdImportResponse': TypeInfo(TypeOf.Class, create:() => SamGovWdImportResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SamGovWdImportRequest': TypeInfo(TypeOf.Class, create:() => SamGovWdImportRequest()), });