/* Options: Date: 2026-11-24 11:40: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: FormRecordUpdateRequest.* //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 FormRecordUpdateDraftResponse implements IConvertible { String? SubmissionUID; String? Number; String? ForName; String? BranchName; String? AppJson; String? AnswersJson; int? Rev; String? TenantName; String? Today; String? Outcome; String? SignedInName; bool? CanReveal; ResponseStatus? ResponseStatus; FormRecordUpdateDraftResponse({this.SubmissionUID,this.Number,this.ForName,this.BranchName,this.AppJson,this.AnswersJson,this.Rev,this.TenantName,this.Today,this.Outcome,this.SignedInName,this.CanReveal,this.ResponseStatus}); FormRecordUpdateDraftResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SubmissionUID = json['SubmissionUID']; Number = json['Number']; ForName = json['ForName']; BranchName = json['BranchName']; AppJson = json['AppJson']; AnswersJson = json['AnswersJson']; Rev = json['Rev']; TenantName = json['TenantName']; Today = json['Today']; Outcome = json['Outcome']; SignedInName = json['SignedInName']; CanReveal = json['CanReveal']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'SubmissionUID': SubmissionUID, 'Number': Number, 'ForName': ForName, 'BranchName': BranchName, 'AppJson': AppJson, 'AnswersJson': AnswersJson, 'Rev': Rev, 'TenantName': TenantName, 'Today': Today, 'Outcome': Outcome, 'SignedInName': SignedInName, 'CanReveal': CanReveal, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "FormRecordUpdateDraftResponse"; TypeContext? context = _ctx; } class FormRecordUpdateSaveResponse implements IConvertible { bool? Saved; int? Rev; List? Lines = []; List? Errors = []; FormRecordUpdateDraftResponse? Draft; ResponseStatus? ResponseStatus; FormRecordUpdateSaveResponse({this.Saved,this.Rev,this.Lines,this.Errors,this.Draft,this.ResponseStatus}); FormRecordUpdateSaveResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Saved = json['Saved']; Rev = json['Rev']; Lines = JsonConverters.fromJson(json['Lines'],'List',context!); Errors = JsonConverters.fromJson(json['Errors'],'List',context!); Draft = JsonConverters.fromJson(json['Draft'],'FormRecordUpdateDraftResponse',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Saved': Saved, 'Rev': Rev, 'Lines': JsonConverters.toJson(Lines,'List',context!), 'Errors': JsonConverters.toJson(Errors,'List',context!), 'Draft': JsonConverters.toJson(Draft,'FormRecordUpdateDraftResponse',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "FormRecordUpdateSaveResponse"; TypeContext? context = _ctx; } // @Route("/v1/forms/submissions/{SubmissionUID}/update", "GET,PUT") class FormRecordUpdateRequest implements IReturn, IConvertible, IGet { String? SubmissionUID; String? AnswersJson; int? Rev; FormRecordUpdateRequest({this.SubmissionUID,this.AnswersJson,this.Rev}); FormRecordUpdateRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SubmissionUID = json['SubmissionUID']; AnswersJson = json['AnswersJson']; Rev = json['Rev']; return this; } Map toJson() => { 'SubmissionUID': SubmissionUID, 'AnswersJson': AnswersJson, 'Rev': Rev }; createResponse() => FormRecordUpdateSaveResponse(); getResponseTypeName() => "FormRecordUpdateSaveResponse"; getTypeName() => "FormRecordUpdateRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'FormFillFieldError': TypeInfo(TypeOf.Class, create:() => FormFillFieldError()), 'FormRecordUpdateDraftResponse': TypeInfo(TypeOf.Class, create:() => FormRecordUpdateDraftResponse()), 'FormRecordUpdateSaveResponse': TypeInfo(TypeOf.Class, create:() => FormRecordUpdateSaveResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'FormRecordUpdateRequest': TypeInfo(TypeOf.Class, create:() => FormRecordUpdateRequest()), });