/* Options: Date: 2026-09-05 10:29:55 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: DispatchHoldSuggestionDismissRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class DispatchHoldView implements IConvertible { int? HoldId; String? Code; String? ScopeKind; String? ScopeKey; String? ScopeLabel; String? Reason; String? Note; DateTime? StartUtc; DateTime? EndUtc; String? Source; String? IncidentRef; DateTime? LiftedUtc; String? LiftedBy; DateTime? CreatedUtc; String? CreatedBy; String? Status; DispatchHoldView({this.HoldId,this.Code,this.ScopeKind,this.ScopeKey,this.ScopeLabel,this.Reason,this.Note,this.StartUtc,this.EndUtc,this.Source,this.IncidentRef,this.LiftedUtc,this.LiftedBy,this.CreatedUtc,this.CreatedBy,this.Status}); DispatchHoldView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { HoldId = json['HoldId']; Code = json['Code']; ScopeKind = json['ScopeKind']; ScopeKey = json['ScopeKey']; ScopeLabel = json['ScopeLabel']; Reason = json['Reason']; Note = json['Note']; StartUtc = JsonConverters.fromJson(json['StartUtc'],'DateTime',context!); EndUtc = JsonConverters.fromJson(json['EndUtc'],'DateTime',context!); Source = json['Source']; IncidentRef = json['IncidentRef']; LiftedUtc = JsonConverters.fromJson(json['LiftedUtc'],'DateTime',context!); LiftedBy = json['LiftedBy']; CreatedUtc = JsonConverters.fromJson(json['CreatedUtc'],'DateTime',context!); CreatedBy = json['CreatedBy']; Status = json['Status']; return this; } Map toJson() => { 'HoldId': HoldId, 'Code': Code, 'ScopeKind': ScopeKind, 'ScopeKey': ScopeKey, 'ScopeLabel': ScopeLabel, 'Reason': Reason, 'Note': Note, 'StartUtc': JsonConverters.toJson(StartUtc,'DateTime',context!), 'EndUtc': JsonConverters.toJson(EndUtc,'DateTime',context!), 'Source': Source, 'IncidentRef': IncidentRef, 'LiftedUtc': JsonConverters.toJson(LiftedUtc,'DateTime',context!), 'LiftedBy': LiftedBy, 'CreatedUtc': JsonConverters.toJson(CreatedUtc,'DateTime',context!), 'CreatedBy': CreatedBy, 'Status': Status }; getTypeName() => "DispatchHoldView"; TypeContext? context = _ctx; } class DispatchOfflineWindowView implements IConvertible { int? OfflineWindowId; String? FromHour; String? ToHour; DispatchOfflineWindowView({this.OfflineWindowId,this.FromHour,this.ToHour}); DispatchOfflineWindowView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { OfflineWindowId = json['OfflineWindowId']; FromHour = json['FromHour']; ToHour = json['ToHour']; return this; } Map toJson() => { 'OfflineWindowId': OfflineWindowId, 'FromHour': FromHour, 'ToHour': ToHour }; getTypeName() => "DispatchOfflineWindowView"; TypeContext? context = _ctx; } class DispatchHoldScopeView implements IConvertible { String? Kind; String? Key; String? Label; DispatchHoldScopeView({this.Kind,this.Key,this.Label}); DispatchHoldScopeView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Kind = json['Kind']; Key = json['Key']; Label = json['Label']; return this; } Map toJson() => { 'Kind': Kind, 'Key': Key, 'Label': Label }; getTypeName() => "DispatchHoldScopeView"; TypeContext? context = _ctx; } class DispatchHoldSuggestionView implements IConvertible { String? ForDate; String? Kind; int? Severity; String? Headline; String? DayLabel; String? ScopeKind; String? ScopeLabel; String? Reason; DateTime? StartUtc; DateTime? EndUtc; String? WindowLocal; String? Text; DispatchHoldSuggestionView({this.ForDate,this.Kind,this.Severity,this.Headline,this.DayLabel,this.ScopeKind,this.ScopeLabel,this.Reason,this.StartUtc,this.EndUtc,this.WindowLocal,this.Text}); DispatchHoldSuggestionView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ForDate = json['ForDate']; Kind = json['Kind']; Severity = json['Severity']; Headline = json['Headline']; DayLabel = json['DayLabel']; ScopeKind = json['ScopeKind']; ScopeLabel = json['ScopeLabel']; Reason = json['Reason']; StartUtc = JsonConverters.fromJson(json['StartUtc'],'DateTime',context!); EndUtc = JsonConverters.fromJson(json['EndUtc'],'DateTime',context!); WindowLocal = json['WindowLocal']; Text = json['Text']; return this; } Map toJson() => { 'ForDate': ForDate, 'Kind': Kind, 'Severity': Severity, 'Headline': Headline, 'DayLabel': DayLabel, 'ScopeKind': ScopeKind, 'ScopeLabel': ScopeLabel, 'Reason': Reason, 'StartUtc': JsonConverters.toJson(StartUtc,'DateTime',context!), 'EndUtc': JsonConverters.toJson(EndUtc,'DateTime',context!), 'WindowLocal': WindowLocal, 'Text': Text }; getTypeName() => "DispatchHoldSuggestionView"; TypeContext? context = _ctx; } class DispatchHoldsResponse implements IConvertible { List? Holds = []; List? Windows = []; List? Scopes = []; DispatchHoldSuggestionView? Suggestion; ResponseStatus? ResponseStatus; DispatchHoldsResponse({this.Holds,this.Windows,this.Scopes,this.Suggestion,this.ResponseStatus}); DispatchHoldsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Holds = JsonConverters.fromJson(json['Holds'],'List',context!); Windows = JsonConverters.fromJson(json['Windows'],'List',context!); Scopes = JsonConverters.fromJson(json['Scopes'],'List',context!); Suggestion = JsonConverters.fromJson(json['Suggestion'],'DispatchHoldSuggestionView',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Holds': JsonConverters.toJson(Holds,'List',context!), 'Windows': JsonConverters.toJson(Windows,'List',context!), 'Scopes': JsonConverters.toJson(Scopes,'List',context!), 'Suggestion': JsonConverters.toJson(Suggestion,'DispatchHoldSuggestionView',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "DispatchHoldsResponse"; TypeContext? context = _ctx; } // @Route("/v1/dispatch/holds/suggestion/dismiss", "POST,OPTIONS") class DispatchHoldSuggestionDismissRequest implements IReturn, IConvertible, IPost { String? ForDate; String? Kind; DispatchHoldSuggestionDismissRequest({this.ForDate,this.Kind}); DispatchHoldSuggestionDismissRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ForDate = json['ForDate']; Kind = json['Kind']; return this; } Map toJson() => { 'ForDate': ForDate, 'Kind': Kind }; createResponse() => DispatchHoldsResponse(); getResponseTypeName() => "DispatchHoldsResponse"; getTypeName() => "DispatchHoldSuggestionDismissRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'DispatchHoldView': TypeInfo(TypeOf.Class, create:() => DispatchHoldView()), 'DispatchOfflineWindowView': TypeInfo(TypeOf.Class, create:() => DispatchOfflineWindowView()), 'DispatchHoldScopeView': TypeInfo(TypeOf.Class, create:() => DispatchHoldScopeView()), 'DispatchHoldSuggestionView': TypeInfo(TypeOf.Class, create:() => DispatchHoldSuggestionView()), 'DispatchHoldsResponse': TypeInfo(TypeOf.Class, create:() => DispatchHoldsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'DispatchHoldSuggestionDismissRequest': TypeInfo(TypeOf.Class, create:() => DispatchHoldSuggestionDismissRequest()), });