/* Options: Date: 2026-11-20 21:09:43 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: FormSubmissionDecideRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class FormCounterSignature implements IConvertible { String? Mode; String? Name; String? Png; FormCounterSignature({this.Mode,this.Name,this.Png}); FormCounterSignature.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Mode = json['Mode']; Name = json['Name']; Png = json['Png']; return this; } Map toJson() => { 'Mode': Mode, 'Name': Name, 'Png': Png }; getTypeName() => "FormCounterSignature"; TypeContext? context = _ctx; } class FormFillReceiptLine implements IConvertible { String? Channel; String? To; String? Outcome; FormFillReceiptLine({this.Channel,this.To,this.Outcome}); FormFillReceiptLine.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Channel = json['Channel']; To = json['To']; Outcome = json['Outcome']; return this; } Map toJson() => { 'Channel': Channel, 'To': To, 'Outcome': Outcome }; getTypeName() => "FormFillReceiptLine"; TypeContext? context = _ctx; } class FormSubmissionRecordResponse implements IConvertible { FormSubmissionRecord? Record; ResponseStatus? ResponseStatus; FormSubmissionRecordResponse({this.Record,this.ResponseStatus}); FormSubmissionRecordResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Record = JsonConverters.fromJson(json['Record'],'FormSubmissionRecord',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Record': JsonConverters.toJson(Record,'FormSubmissionRecord',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "FormSubmissionRecordResponse"; TypeContext? context = _ctx; } class FormSubmissionRequestInfoResponse extends FormSubmissionRecordResponse implements IConvertible { List? Sent = []; FormSubmissionRequestInfoResponse({this.Sent}); FormSubmissionRequestInfoResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Sent = JsonConverters.fromJson(json['Sent'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Sent': JsonConverters.toJson(Sent,'List',context!) }); getTypeName() => "FormSubmissionRequestInfoResponse"; TypeContext? context = _ctx; } // @Route("/v1/forms/submissions/{SubmissionUID}/decide", "POST") class FormSubmissionDecideRequest implements IReturn, IConvertible, IPost { String? SubmissionUID; String? Outcome; String? Reason; String? Note; FormCounterSignature? Counter; String? From; FormSubmissionDecideRequest({this.SubmissionUID,this.Outcome,this.Reason,this.Note,this.Counter,this.From}); FormSubmissionDecideRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SubmissionUID = json['SubmissionUID']; Outcome = json['Outcome']; Reason = json['Reason']; Note = json['Note']; Counter = JsonConverters.fromJson(json['Counter'],'FormCounterSignature',context!); From = json['From']; return this; } Map toJson() => { 'SubmissionUID': SubmissionUID, 'Outcome': Outcome, 'Reason': Reason, 'Note': Note, 'Counter': JsonConverters.toJson(Counter,'FormCounterSignature',context!), 'From': From }; createResponse() => FormSubmissionRequestInfoResponse(); getResponseTypeName() => "FormSubmissionRequestInfoResponse"; getTypeName() => "FormSubmissionDecideRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'FormCounterSignature': TypeInfo(TypeOf.Class, create:() => FormCounterSignature()), 'FormFillReceiptLine': TypeInfo(TypeOf.Class, create:() => FormFillReceiptLine()), 'FormSubmissionRecordResponse': TypeInfo(TypeOf.Class, create:() => FormSubmissionRecordResponse()), 'FormSubmissionRecord': TypeInfo(TypeOf.Class, create:() => FormSubmissionRecord()), 'FormSubmissionRequestInfoResponse': TypeInfo(TypeOf.Class, create:() => FormSubmissionRequestInfoResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'FormSubmissionDecideRequest': TypeInfo(TypeOf.Class, create:() => FormSubmissionDecideRequest()), });