/* Options: Date: 2026-11-15 00:32:58 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: FormFillSubmitRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class FormFillFieldError implements IConvertible { String? K; String? Msg; FormFillFieldError({this.K,this.Msg}); FormFillFieldError.fromJson(Map json) { fromMap(json); } fromMap(Map json) { K = json['K']; Msg = json['Msg']; return this; } Map toJson() => { 'K': K, 'Msg': Msg }; getTypeName() => "FormFillFieldError"; 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 FormFillSubmitResponse implements IConvertible { String? State; String? Number; String? StatusUrl; List? Receipt = []; String? First; List? Errors = []; ResponseStatus? ResponseStatus; FormFillSubmitResponse({this.State,this.Number,this.StatusUrl,this.Receipt,this.First,this.Errors,this.ResponseStatus}); FormFillSubmitResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { State = json['State']; Number = json['Number']; StatusUrl = json['StatusUrl']; Receipt = JsonConverters.fromJson(json['Receipt'],'List',context!); First = json['First']; Errors = JsonConverters.fromJson(json['Errors'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'State': State, 'Number': Number, 'StatusUrl': StatusUrl, 'Receipt': JsonConverters.toJson(Receipt,'List',context!), 'First': First, 'Errors': JsonConverters.toJson(Errors,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "FormFillSubmitResponse"; TypeContext? context = _ctx; } // @Route("/v1/formfill/draft/{Token}/submit", "POST") class FormFillSubmitRequest implements IReturn, IConvertible, IPost { String? Token; String? AnswersJson; String? Lang; String? TurnstileToken; FormFillSubmitRequest({this.Token,this.AnswersJson,this.Lang,this.TurnstileToken}); FormFillSubmitRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Token = json['Token']; AnswersJson = json['AnswersJson']; Lang = json['Lang']; TurnstileToken = json['TurnstileToken']; return this; } Map toJson() => { 'Token': Token, 'AnswersJson': AnswersJson, 'Lang': Lang, 'TurnstileToken': TurnstileToken }; createResponse() => FormFillSubmitResponse(); getResponseTypeName() => "FormFillSubmitResponse"; getTypeName() => "FormFillSubmitRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'FormFillFieldError': TypeInfo(TypeOf.Class, create:() => FormFillFieldError()), 'FormFillReceiptLine': TypeInfo(TypeOf.Class, create:() => FormFillReceiptLine()), 'FormFillSubmitResponse': TypeInfo(TypeOf.Class, create:() => FormFillSubmitResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'FormFillSubmitRequest': TypeInfo(TypeOf.Class, create:() => FormFillSubmitRequest()), });