/* Options: Date: 2026-11-23 14:43:01 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: FormOfficeSubmitRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; 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 FormOfficeSubmitResponse implements IConvertible { String? State; String? Number; String? SubmissionUID; bool? Approved; bool? Waiting; List? Receipt = []; List? Errors = []; ResponseStatus? ResponseStatus; FormOfficeSubmitResponse({this.State,this.Number,this.SubmissionUID,this.Approved,this.Waiting,this.Receipt,this.Errors,this.ResponseStatus}); FormOfficeSubmitResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { State = json['State']; Number = json['Number']; SubmissionUID = json['SubmissionUID']; Approved = json['Approved']; Waiting = json['Waiting']; Receipt = JsonConverters.fromJson(json['Receipt'],'List',context!); Errors = JsonConverters.fromJson(json['Errors'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'State': State, 'Number': Number, 'SubmissionUID': SubmissionUID, 'Approved': Approved, 'Waiting': Waiting, 'Receipt': JsonConverters.toJson(Receipt,'List',context!), 'Errors': JsonConverters.toJson(Errors,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "FormOfficeSubmitResponse"; TypeContext? context = _ctx; } // @Route("/v1/forms/office/drafts/{SubmissionUID}/submit", "POST,OPTIONS") class FormOfficeSubmitRequest implements IReturn, IConvertible, IPost { String? SubmissionUID; String? AnswersJson; FormOfficeSubmitRequest({this.SubmissionUID,this.AnswersJson}); FormOfficeSubmitRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SubmissionUID = json['SubmissionUID']; AnswersJson = json['AnswersJson']; return this; } Map toJson() => { 'SubmissionUID': SubmissionUID, 'AnswersJson': AnswersJson }; createResponse() => FormOfficeSubmitResponse(); getResponseTypeName() => "FormOfficeSubmitResponse"; getTypeName() => "FormOfficeSubmitRequest"; 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()), 'FormOfficeSubmitResponse': TypeInfo(TypeOf.Class, create:() => FormOfficeSubmitResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'FormOfficeSubmitRequest': TypeInfo(TypeOf.Class, create:() => FormOfficeSubmitRequest()), });