/* Options: Date: 2026-07-08 19:46:41 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: CertifiedPayrollRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class CertifiedPayrollLine implements IConvertible { int? CertifiedPayrollLineID; int? CertifiedPayrollID; String? WorkerName; int? ContactID; String? Classification; double? HoursST; double? HoursOT; double? BaseRate; double? FringeRate; double? FringeCashRate; double? FringePlanRate; double? GrossPay; bool? Flagged; double? RestitutionAmount; String? RestitutionNote; double? RequiredBase; double? RequiredFringe; int? SortOrder; CertifiedPayrollLine({this.CertifiedPayrollLineID,this.CertifiedPayrollID,this.WorkerName,this.ContactID,this.Classification,this.HoursST,this.HoursOT,this.BaseRate,this.FringeRate,this.FringeCashRate,this.FringePlanRate,this.GrossPay,this.Flagged,this.RestitutionAmount,this.RestitutionNote,this.RequiredBase,this.RequiredFringe,this.SortOrder}); CertifiedPayrollLine.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CertifiedPayrollLineID = json['CertifiedPayrollLineID']; CertifiedPayrollID = json['CertifiedPayrollID']; WorkerName = json['WorkerName']; ContactID = json['ContactID']; Classification = json['Classification']; HoursST = JsonConverters.toDouble(json['HoursST']); HoursOT = JsonConverters.toDouble(json['HoursOT']); BaseRate = JsonConverters.toDouble(json['BaseRate']); FringeRate = JsonConverters.toDouble(json['FringeRate']); FringeCashRate = JsonConverters.toDouble(json['FringeCashRate']); FringePlanRate = JsonConverters.toDouble(json['FringePlanRate']); GrossPay = JsonConverters.toDouble(json['GrossPay']); Flagged = json['Flagged']; RestitutionAmount = JsonConverters.toDouble(json['RestitutionAmount']); RestitutionNote = json['RestitutionNote']; RequiredBase = JsonConverters.toDouble(json['RequiredBase']); RequiredFringe = JsonConverters.toDouble(json['RequiredFringe']); SortOrder = json['SortOrder']; return this; } Map toJson() => { 'CertifiedPayrollLineID': CertifiedPayrollLineID, 'CertifiedPayrollID': CertifiedPayrollID, 'WorkerName': WorkerName, 'ContactID': ContactID, 'Classification': Classification, 'HoursST': HoursST, 'HoursOT': HoursOT, 'BaseRate': BaseRate, 'FringeRate': FringeRate, 'FringeCashRate': FringeCashRate, 'FringePlanRate': FringePlanRate, 'GrossPay': GrossPay, 'Flagged': Flagged, 'RestitutionAmount': RestitutionAmount, 'RestitutionNote': RestitutionNote, 'RequiredBase': RequiredBase, 'RequiredFringe': RequiredFringe, 'SortOrder': SortOrder }; getTypeName() => "CertifiedPayrollLine"; TypeContext? context = _ctx; } class CertifiedPayroll implements IConvertible { int? CertifiedPayrollID; String? CertifiedPayrollUID; int? ProjectID; int? PayrollNumber; DateTime? WeekEnding; String? Status; double? DbeParticipationPct; double? DbeGoalPct; double? OjtApprenticeHours; double? OjtApprenticeGoalHours; int? WorkerCount; double? TotalHoursST; double? TotalHoursOT; double? TotalGrossPay; int? FlaggedCount; String? SubmittedBy; DateTime? SubmittedAt; String? CreatedBy; DateTime? CreatedAt; DateTime? UpdatedAt; List? Lines = []; String? DeterminationNo; String? DeterminationType; CertifiedPayroll({this.CertifiedPayrollID,this.CertifiedPayrollUID,this.ProjectID,this.PayrollNumber,this.WeekEnding,this.Status,this.DbeParticipationPct,this.DbeGoalPct,this.OjtApprenticeHours,this.OjtApprenticeGoalHours,this.WorkerCount,this.TotalHoursST,this.TotalHoursOT,this.TotalGrossPay,this.FlaggedCount,this.SubmittedBy,this.SubmittedAt,this.CreatedBy,this.CreatedAt,this.UpdatedAt,this.Lines,this.DeterminationNo,this.DeterminationType}); CertifiedPayroll.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CertifiedPayrollID = json['CertifiedPayrollID']; CertifiedPayrollUID = json['CertifiedPayrollUID']; ProjectID = json['ProjectID']; PayrollNumber = json['PayrollNumber']; WeekEnding = JsonConverters.fromJson(json['WeekEnding'],'DateTime',context!); Status = json['Status']; DbeParticipationPct = JsonConverters.toDouble(json['DbeParticipationPct']); DbeGoalPct = JsonConverters.toDouble(json['DbeGoalPct']); OjtApprenticeHours = JsonConverters.toDouble(json['OjtApprenticeHours']); OjtApprenticeGoalHours = JsonConverters.toDouble(json['OjtApprenticeGoalHours']); WorkerCount = json['WorkerCount']; TotalHoursST = JsonConverters.toDouble(json['TotalHoursST']); TotalHoursOT = JsonConverters.toDouble(json['TotalHoursOT']); TotalGrossPay = JsonConverters.toDouble(json['TotalGrossPay']); FlaggedCount = json['FlaggedCount']; SubmittedBy = json['SubmittedBy']; SubmittedAt = JsonConverters.fromJson(json['SubmittedAt'],'DateTime',context!); CreatedBy = json['CreatedBy']; CreatedAt = JsonConverters.fromJson(json['CreatedAt'],'DateTime',context!); UpdatedAt = JsonConverters.fromJson(json['UpdatedAt'],'DateTime',context!); Lines = JsonConverters.fromJson(json['Lines'],'List',context!); DeterminationNo = json['DeterminationNo']; DeterminationType = json['DeterminationType']; return this; } Map toJson() => { 'CertifiedPayrollID': CertifiedPayrollID, 'CertifiedPayrollUID': CertifiedPayrollUID, 'ProjectID': ProjectID, 'PayrollNumber': PayrollNumber, 'WeekEnding': JsonConverters.toJson(WeekEnding,'DateTime',context!), 'Status': Status, 'DbeParticipationPct': DbeParticipationPct, 'DbeGoalPct': DbeGoalPct, 'OjtApprenticeHours': OjtApprenticeHours, 'OjtApprenticeGoalHours': OjtApprenticeGoalHours, 'WorkerCount': WorkerCount, 'TotalHoursST': TotalHoursST, 'TotalHoursOT': TotalHoursOT, 'TotalGrossPay': TotalGrossPay, 'FlaggedCount': FlaggedCount, 'SubmittedBy': SubmittedBy, 'SubmittedAt': JsonConverters.toJson(SubmittedAt,'DateTime',context!), 'CreatedBy': CreatedBy, 'CreatedAt': JsonConverters.toJson(CreatedAt,'DateTime',context!), 'UpdatedAt': JsonConverters.toJson(UpdatedAt,'DateTime',context!), 'Lines': JsonConverters.toJson(Lines,'List',context!), 'DeterminationNo': DeterminationNo, 'DeterminationType': DeterminationType }; getTypeName() => "CertifiedPayroll"; TypeContext? context = _ctx; } class CertifiedPayrollResponse implements IConvertible { ResponseStatus? ResponseStatus; CertifiedPayroll? Payroll; CertifiedPayrollResponse({this.ResponseStatus,this.Payroll}); CertifiedPayrollResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Payroll = JsonConverters.fromJson(json['Payroll'],'CertifiedPayroll',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Payroll': JsonConverters.toJson(Payroll,'CertifiedPayroll',context!) }; getTypeName() => "CertifiedPayrollResponse"; TypeContext? context = _ctx; } // @Route("/v1/projects/{ProjectID}/certified-payroll/{Week}", "GET,OPTIONS") class CertifiedPayrollRequest implements IReturn, IConvertible, IGet { int? ProjectID; String? Week; CertifiedPayrollRequest({this.ProjectID,this.Week}); CertifiedPayrollRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ProjectID = json['ProjectID']; Week = json['Week']; return this; } Map toJson() => { 'ProjectID': ProjectID, 'Week': Week }; createResponse() => CertifiedPayrollResponse(); getResponseTypeName() => "CertifiedPayrollResponse"; getTypeName() => "CertifiedPayrollRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'CertifiedPayrollLine': TypeInfo(TypeOf.Class, create:() => CertifiedPayrollLine()), 'CertifiedPayroll': TypeInfo(TypeOf.Class, create:() => CertifiedPayroll()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CertifiedPayrollResponse': TypeInfo(TypeOf.Class, create:() => CertifiedPayrollResponse()), 'CertifiedPayrollRequest': TypeInfo(TypeOf.Class, create:() => CertifiedPayrollRequest()), });