/* Options: Date: 2026-11-30 03:11:38 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: FormGoSendPreviewRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class FormGoPosition implements IConvertible { String? SkillUID; String? Name; bool? Active; bool? Ticked; int? Count; FormGoPosition({this.SkillUID,this.Name,this.Active,this.Ticked,this.Count}); FormGoPosition.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SkillUID = json['SkillUID']; Name = json['Name']; Active = json['Active']; Ticked = json['Ticked']; Count = json['Count']; return this; } Map toJson() => { 'SkillUID': SkillUID, 'Name': Name, 'Active': Active, 'Ticked': Ticked, 'Count': Count }; getTypeName() => "FormGoPosition"; TypeContext? context = _ctx; } class FormGoSendWorker implements IConvertible { int? Id; String? Name; String? Position; bool? Submitted; FormGoSendWorker({this.Id,this.Name,this.Position,this.Submitted}); FormGoSendWorker.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; Position = json['Position']; Submitted = json['Submitted']; return this; } Map toJson() => { 'Id': Id, 'Name': Name, 'Position': Position, 'Submitted': Submitted }; getTypeName() => "FormGoSendWorker"; TypeContext? context = _ctx; } class FormGoSendPreviewResponse implements IConvertible { List? Positions = []; List? Workers = []; int? Send; int? Skipped; String? Consequence; String? SendLabel; String? Refusal; String? SendOff; int? Max; ResponseStatus? ResponseStatus; FormGoSendPreviewResponse({this.Positions,this.Workers,this.Send,this.Skipped,this.Consequence,this.SendLabel,this.Refusal,this.SendOff,this.Max,this.ResponseStatus}); FormGoSendPreviewResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Positions = JsonConverters.fromJson(json['Positions'],'List',context!); Workers = JsonConverters.fromJson(json['Workers'],'List',context!); Send = json['Send']; Skipped = json['Skipped']; Consequence = json['Consequence']; SendLabel = json['SendLabel']; Refusal = json['Refusal']; SendOff = json['SendOff']; Max = json['Max']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Positions': JsonConverters.toJson(Positions,'List',context!), 'Workers': JsonConverters.toJson(Workers,'List',context!), 'Send': Send, 'Skipped': Skipped, 'Consequence': Consequence, 'SendLabel': SendLabel, 'Refusal': Refusal, 'SendOff': SendOff, 'Max': Max, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "FormGoSendPreviewResponse"; TypeContext? context = _ctx; } // @Route("/v1/forms/go-send/preview", "POST") class FormGoSendPreviewRequest implements IReturn, IConvertible, IPost { String? FormUID; String? Mode; List? Positions = []; List? Workers = []; bool? WithRows; FormGoSendPreviewRequest({this.FormUID,this.Mode,this.Positions,this.Workers,this.WithRows}); FormGoSendPreviewRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { FormUID = json['FormUID']; Mode = json['Mode']; Positions = JsonConverters.fromJson(json['Positions'],'List',context!); Workers = JsonConverters.fromJson(json['Workers'],'List',context!); WithRows = json['WithRows']; return this; } Map toJson() => { 'FormUID': FormUID, 'Mode': Mode, 'Positions': JsonConverters.toJson(Positions,'List',context!), 'Workers': JsonConverters.toJson(Workers,'List',context!), 'WithRows': WithRows }; createResponse() => FormGoSendPreviewResponse(); getResponseTypeName() => "FormGoSendPreviewResponse"; getTypeName() => "FormGoSendPreviewRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'FormGoPosition': TypeInfo(TypeOf.Class, create:() => FormGoPosition()), 'FormGoSendWorker': TypeInfo(TypeOf.Class, create:() => FormGoSendWorker()), 'FormGoSendPreviewResponse': TypeInfo(TypeOf.Class, create:() => FormGoSendPreviewResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'FormGoSendPreviewRequest': TypeInfo(TypeOf.Class, create:() => FormGoSendPreviewRequest()), });