/* Options: Date: 2026-09-05 08:24:49 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: DispatchModulesRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class DispatchModuleView implements IConvertible { String? Key; String? Mode; bool? Allowed; bool? Enabled; int? InFlight; DispatchModuleView({this.Key,this.Mode,this.Allowed,this.Enabled,this.InFlight}); DispatchModuleView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Key = json['Key']; Mode = json['Mode']; Allowed = json['Allowed']; Enabled = json['Enabled']; InFlight = json['InFlight']; return this; } Map toJson() => { 'Key': Key, 'Mode': Mode, 'Allowed': Allowed, 'Enabled': Enabled, 'InFlight': InFlight }; getTypeName() => "DispatchModuleView"; TypeContext? context = _ctx; } class DispatchPatternView implements IConvertible { String? PatternId; String? Name; String? Source; String? Facility; String? Unit; bool? HasQuotas; bool? IsInverted; int? LoadLimitMins; String? TicketSource; String? PayBasis; bool? IsActive; DispatchPatternView({this.PatternId,this.Name,this.Source,this.Facility,this.Unit,this.HasQuotas,this.IsInverted,this.LoadLimitMins,this.TicketSource,this.PayBasis,this.IsActive}); DispatchPatternView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { PatternId = json['PatternId']; Name = json['Name']; Source = json['Source']; Facility = json['Facility']; Unit = json['Unit']; HasQuotas = json['HasQuotas']; IsInverted = json['IsInverted']; LoadLimitMins = json['LoadLimitMins']; TicketSource = json['TicketSource']; PayBasis = json['PayBasis']; IsActive = json['IsActive']; return this; } Map toJson() => { 'PatternId': PatternId, 'Name': Name, 'Source': Source, 'Facility': Facility, 'Unit': Unit, 'HasQuotas': HasQuotas, 'IsInverted': IsInverted, 'LoadLimitMins': LoadLimitMins, 'TicketSource': TicketSource, 'PayBasis': PayBasis, 'IsActive': IsActive }; getTypeName() => "DispatchPatternView"; TypeContext? context = _ctx; } class DispatchModulesResponse implements IConvertible { List? Modules = []; List? Patterns = []; ResponseStatus? ResponseStatus; DispatchModulesResponse({this.Modules,this.Patterns,this.ResponseStatus}); DispatchModulesResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Modules = JsonConverters.fromJson(json['Modules'],'List',context!); Patterns = JsonConverters.fromJson(json['Patterns'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Modules': JsonConverters.toJson(Modules,'List',context!), 'Patterns': JsonConverters.toJson(Patterns,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "DispatchModulesResponse"; TypeContext? context = _ctx; } // @Route("/v1/dispatch/settings/modules", "GET,OPTIONS") class DispatchModulesRequest implements IReturn, IConvertible, IGet { DispatchModulesRequest(); DispatchModulesRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => DispatchModulesResponse(); getResponseTypeName() => "DispatchModulesResponse"; getTypeName() => "DispatchModulesRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'DispatchModuleView': TypeInfo(TypeOf.Class, create:() => DispatchModuleView()), 'DispatchPatternView': TypeInfo(TypeOf.Class, create:() => DispatchPatternView()), 'DispatchModulesResponse': TypeInfo(TypeOf.Class, create:() => DispatchModulesResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'DispatchModulesRequest': TypeInfo(TypeOf.Class, create:() => DispatchModulesRequest()), });