/* Options: Date: 2026-08-01 01:23:52 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: ShiftPatternSaveRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ShiftPattern implements IConvertible { int? ShiftPatternID; String? BranchId; String? Code; String? Name; String? Struct; double? HoursPerDay; int? OnDays; int? OffDays; String? PatternType; bool? IsNight; bool? HasBoundary; bool? IsHitch; bool? HasTravel; bool? IsSeasonal; String? SeasonalWindow; bool? IsDayRate; String? OtRuleId; String? PerDiemRuleId; String? Packs; String? Status; bool? IsSeed; int? AssignedCount; ShiftPattern({this.ShiftPatternID,this.BranchId,this.Code,this.Name,this.Struct,this.HoursPerDay,this.OnDays,this.OffDays,this.PatternType,this.IsNight,this.HasBoundary,this.IsHitch,this.HasTravel,this.IsSeasonal,this.SeasonalWindow,this.IsDayRate,this.OtRuleId,this.PerDiemRuleId,this.Packs,this.Status,this.IsSeed,this.AssignedCount}); ShiftPattern.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ShiftPatternID = json['ShiftPatternID']; BranchId = json['BranchId']; Code = json['Code']; Name = json['Name']; Struct = json['Struct']; HoursPerDay = JsonConverters.toDouble(json['HoursPerDay']); OnDays = json['OnDays']; OffDays = json['OffDays']; PatternType = json['PatternType']; IsNight = json['IsNight']; HasBoundary = json['HasBoundary']; IsHitch = json['IsHitch']; HasTravel = json['HasTravel']; IsSeasonal = json['IsSeasonal']; SeasonalWindow = json['SeasonalWindow']; IsDayRate = json['IsDayRate']; OtRuleId = json['OtRuleId']; PerDiemRuleId = json['PerDiemRuleId']; Packs = json['Packs']; Status = json['Status']; IsSeed = json['IsSeed']; AssignedCount = json['AssignedCount']; return this; } Map toJson() => { 'ShiftPatternID': ShiftPatternID, 'BranchId': BranchId, 'Code': Code, 'Name': Name, 'Struct': Struct, 'HoursPerDay': HoursPerDay, 'OnDays': OnDays, 'OffDays': OffDays, 'PatternType': PatternType, 'IsNight': IsNight, 'HasBoundary': HasBoundary, 'IsHitch': IsHitch, 'HasTravel': HasTravel, 'IsSeasonal': IsSeasonal, 'SeasonalWindow': SeasonalWindow, 'IsDayRate': IsDayRate, 'OtRuleId': OtRuleId, 'PerDiemRuleId': PerDiemRuleId, 'Packs': Packs, 'Status': Status, 'IsSeed': IsSeed, 'AssignedCount': AssignedCount }; getTypeName() => "ShiftPattern"; TypeContext? context = _ctx; } class ShiftPatternsResponse implements IConvertible { List? Patterns = []; ResponseStatus? ResponseStatus; ShiftPatternsResponse({this.Patterns,this.ResponseStatus}); ShiftPatternsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Patterns = JsonConverters.fromJson(json['Patterns'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Patterns': JsonConverters.toJson(Patterns,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "ShiftPatternsResponse"; TypeContext? context = _ctx; } // @Route("/v1/workforce/patterns", "POST") class ShiftPatternSaveRequest implements IReturn, IConvertible, IPost { ShiftPattern? Pattern; ShiftPatternSaveRequest({this.Pattern}); ShiftPatternSaveRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Pattern = JsonConverters.fromJson(json['Pattern'],'ShiftPattern',context!); return this; } Map toJson() => { 'Pattern': JsonConverters.toJson(Pattern,'ShiftPattern',context!) }; createResponse() => ShiftPatternsResponse(); getResponseTypeName() => "ShiftPatternsResponse"; getTypeName() => "ShiftPatternSaveRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'ShiftPattern': TypeInfo(TypeOf.Class, create:() => ShiftPattern()), 'ShiftPatternsResponse': TypeInfo(TypeOf.Class, create:() => ShiftPatternsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ShiftPatternSaveRequest': TypeInfo(TypeOf.Class, create:() => ShiftPatternSaveRequest()), });