/* Options: Date: 2026-08-01 05:37: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: PayRulePoliciesRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class PayRulePolicy implements IConvertible { int? PayRulePolicyId; String? PayRulePolicyUID; String? Name; String? ScopeLevel; String? BranchId; String? JurisdictionKey; String? CbaKey; String? WorkTypeKey; int? CurrentVersion; bool? IsActive; String? BranchName; PayRulePolicy({this.PayRulePolicyId,this.PayRulePolicyUID,this.Name,this.ScopeLevel,this.BranchId,this.JurisdictionKey,this.CbaKey,this.WorkTypeKey,this.CurrentVersion,this.IsActive,this.BranchName}); PayRulePolicy.fromJson(Map json) { fromMap(json); } fromMap(Map json) { PayRulePolicyId = json['PayRulePolicyId']; PayRulePolicyUID = json['PayRulePolicyUID']; Name = json['Name']; ScopeLevel = json['ScopeLevel']; BranchId = json['BranchId']; JurisdictionKey = json['JurisdictionKey']; CbaKey = json['CbaKey']; WorkTypeKey = json['WorkTypeKey']; CurrentVersion = json['CurrentVersion']; IsActive = json['IsActive']; BranchName = json['BranchName']; return this; } Map toJson() => { 'PayRulePolicyId': PayRulePolicyId, 'PayRulePolicyUID': PayRulePolicyUID, 'Name': Name, 'ScopeLevel': ScopeLevel, 'BranchId': BranchId, 'JurisdictionKey': JurisdictionKey, 'CbaKey': CbaKey, 'WorkTypeKey': WorkTypeKey, 'CurrentVersion': CurrentVersion, 'IsActive': IsActive, 'BranchName': BranchName }; getTypeName() => "PayRulePolicy"; TypeContext? context = _ctx; } class PayRulePoliciesResponse implements IConvertible { List? Policies = []; ResponseStatus? ResponseStatus; PayRulePoliciesResponse({this.Policies,this.ResponseStatus}); PayRulePoliciesResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Policies = JsonConverters.fromJson(json['Policies'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Policies': JsonConverters.toJson(Policies,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "PayRulePoliciesResponse"; TypeContext? context = _ctx; } // @Route("/v1/workforce/payrules/list", "GET") class PayRulePoliciesRequest implements IReturn, IConvertible, IGet { PayRulePoliciesRequest(); PayRulePoliciesRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => PayRulePoliciesResponse(); getResponseTypeName() => "PayRulePoliciesResponse"; getTypeName() => "PayRulePoliciesRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'PayRulePolicy': TypeInfo(TypeOf.Class, create:() => PayRulePolicy()), 'PayRulePoliciesResponse': TypeInfo(TypeOf.Class, create:() => PayRulePoliciesResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'PayRulePoliciesRequest': TypeInfo(TypeOf.Class, create:() => PayRulePoliciesRequest()), });