/* Options: Date: 2026-11-20 21:09:44 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: FormSubmissionDecidePreviewRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class FormDecisionChoice implements IConvertible { String? Id; String? Label; FormDecisionChoice({this.Id,this.Label}); FormDecisionChoice.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Label = json['Label']; return this; } Map toJson() => { 'Id': Id, 'Label': Label }; getTypeName() => "FormDecisionChoice"; TypeContext? context = _ctx; } class FormDecisionEffect implements IConvertible { String? Kind; String? Text; String? Tone; FormDecisionEffect({this.Kind,this.Text,this.Tone}); FormDecisionEffect.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Kind = json['Kind']; Text = json['Text']; Tone = json['Tone']; return this; } Map toJson() => { 'Kind': Kind, 'Text': Text, 'Tone': Tone }; getTypeName() => "FormDecisionEffect"; TypeContext? context = _ctx; } class FormDecisionPlan implements IConvertible { String? Who; String? Stage; List? Choices = []; String? Outcome; List? Reasons = []; String? Reason; bool? NeedSig; String? SignerName; String? SignerRefusal; List? Effects = []; String? Block; String? GoLabel; String? GoCls; bool? CanDecide; String? Refusal; FormDecisionPlan({this.Who,this.Stage,this.Choices,this.Outcome,this.Reasons,this.Reason,this.NeedSig,this.SignerName,this.SignerRefusal,this.Effects,this.Block,this.GoLabel,this.GoCls,this.CanDecide,this.Refusal}); FormDecisionPlan.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Who = json['Who']; Stage = json['Stage']; Choices = JsonConverters.fromJson(json['Choices'],'List',context!); Outcome = json['Outcome']; Reasons = JsonConverters.fromJson(json['Reasons'],'List',context!); Reason = json['Reason']; NeedSig = json['NeedSig']; SignerName = json['SignerName']; SignerRefusal = json['SignerRefusal']; Effects = JsonConverters.fromJson(json['Effects'],'List',context!); Block = json['Block']; GoLabel = json['GoLabel']; GoCls = json['GoCls']; CanDecide = json['CanDecide']; Refusal = json['Refusal']; return this; } Map toJson() => { 'Who': Who, 'Stage': Stage, 'Choices': JsonConverters.toJson(Choices,'List',context!), 'Outcome': Outcome, 'Reasons': JsonConverters.toJson(Reasons,'List',context!), 'Reason': Reason, 'NeedSig': NeedSig, 'SignerName': SignerName, 'SignerRefusal': SignerRefusal, 'Effects': JsonConverters.toJson(Effects,'List',context!), 'Block': Block, 'GoLabel': GoLabel, 'GoCls': GoCls, 'CanDecide': CanDecide, 'Refusal': Refusal }; getTypeName() => "FormDecisionPlan"; TypeContext? context = _ctx; } class FormSubmissionDecidePreviewResponse implements IConvertible { FormDecisionPlan? Plan; ResponseStatus? ResponseStatus; FormSubmissionDecidePreviewResponse({this.Plan,this.ResponseStatus}); FormSubmissionDecidePreviewResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Plan = JsonConverters.fromJson(json['Plan'],'FormDecisionPlan',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Plan': JsonConverters.toJson(Plan,'FormDecisionPlan',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "FormSubmissionDecidePreviewResponse"; TypeContext? context = _ctx; } // @Route("/v1/forms/submissions/{SubmissionUID}/decide/preview", "POST") class FormSubmissionDecidePreviewRequest implements IReturn, IConvertible, IPost { String? SubmissionUID; String? Outcome; String? Reason; String? Note; FormSubmissionDecidePreviewRequest({this.SubmissionUID,this.Outcome,this.Reason,this.Note}); FormSubmissionDecidePreviewRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SubmissionUID = json['SubmissionUID']; Outcome = json['Outcome']; Reason = json['Reason']; Note = json['Note']; return this; } Map toJson() => { 'SubmissionUID': SubmissionUID, 'Outcome': Outcome, 'Reason': Reason, 'Note': Note }; createResponse() => FormSubmissionDecidePreviewResponse(); getResponseTypeName() => "FormSubmissionDecidePreviewResponse"; getTypeName() => "FormSubmissionDecidePreviewRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'FormDecisionChoice': TypeInfo(TypeOf.Class, create:() => FormDecisionChoice()), 'FormDecisionEffect': TypeInfo(TypeOf.Class, create:() => FormDecisionEffect()), 'FormDecisionPlan': TypeInfo(TypeOf.Class, create:() => FormDecisionPlan()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'FormSubmissionDecidePreviewResponse': TypeInfo(TypeOf.Class, create:() => FormSubmissionDecidePreviewResponse()), 'FormSubmissionDecidePreviewRequest': TypeInfo(TypeOf.Class, create:() => FormSubmissionDecidePreviewRequest()), });