/* Options: Date: 2026-11-19 03:34:20 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: FormSubmissionAssignRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class FormStageInfo implements IConvertible { String? Id; String? Label; String? Tone; String? Kind; FormStageInfo({this.Id,this.Label,this.Tone,this.Kind}); FormStageInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Label = json['Label']; Tone = json['Tone']; Kind = json['Kind']; return this; } Map toJson() => { 'Id': Id, 'Label': Label, 'Tone': Tone, 'Kind': Kind }; getTypeName() => "FormStageInfo"; TypeContext? context = _ctx; } class FormPerson implements IConvertible { int? AgentId; String? AgentName; FormPerson({this.AgentId,this.AgentName}); FormPerson.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AgentId = json['AgentId']; AgentName = json['AgentName']; return this; } Map toJson() => { 'AgentId': AgentId, 'AgentName': AgentName }; getTypeName() => "FormPerson"; TypeContext? context = _ctx; } class FormRecordFile implements IConvertible { String? AttachmentId; String? Name; String? Kind; String? Size; bool? Sensitive; bool? Locked; FormRecordFile({this.AttachmentId,this.Name,this.Kind,this.Size,this.Sensitive,this.Locked}); FormRecordFile.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AttachmentId = json['AttachmentId']; Name = json['Name']; Kind = json['Kind']; Size = json['Size']; Sensitive = json['Sensitive']; Locked = json['Locked']; return this; } Map toJson() => { 'AttachmentId': AttachmentId, 'Name': Name, 'Kind': Kind, 'Size': Size, 'Sensitive': Sensitive, 'Locked': Locked }; getTypeName() => "FormRecordFile"; TypeContext? context = _ctx; } class FormRecordSig implements IConvertible { bool? Pending; String? Mode; String? SignerName; String? Role; int? RecordId; String? ImageHash; String? DocumentDigest; String? Ip; String? Browser; bool? ConsentStored; String? SignedText; bool? HasImage; FormRecordSig({this.Pending,this.Mode,this.SignerName,this.Role,this.RecordId,this.ImageHash,this.DocumentDigest,this.Ip,this.Browser,this.ConsentStored,this.SignedText,this.HasImage}); FormRecordSig.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Pending = json['Pending']; Mode = json['Mode']; SignerName = json['SignerName']; Role = json['Role']; RecordId = json['RecordId']; ImageHash = json['ImageHash']; DocumentDigest = json['DocumentDigest']; Ip = json['Ip']; Browser = json['Browser']; ConsentStored = json['ConsentStored']; SignedText = json['SignedText']; HasImage = json['HasImage']; return this; } Map toJson() => { 'Pending': Pending, 'Mode': Mode, 'SignerName': SignerName, 'Role': Role, 'RecordId': RecordId, 'ImageHash': ImageHash, 'DocumentDigest': DocumentDigest, 'Ip': Ip, 'Browser': Browser, 'ConsentStored': ConsentStored, 'SignedText': SignedText, 'HasImage': HasImage }; getTypeName() => "FormRecordSig"; TypeContext? context = _ctx; } class FormRecordRow implements IConvertible { String? K; String? L; String? T; String? Kind; String? V; bool? Sensitive; bool? CanReveal; bool? Locked; List? Files = []; bool? NoFiles; FormRecordSig? Sig; FormRecordRow({this.K,this.L,this.T,this.Kind,this.V,this.Sensitive,this.CanReveal,this.Locked,this.Files,this.NoFiles,this.Sig}); FormRecordRow.fromJson(Map json) { fromMap(json); } fromMap(Map json) { K = json['K']; L = json['L']; T = json['T']; Kind = json['Kind']; V = json['V']; Sensitive = json['Sensitive']; CanReveal = json['CanReveal']; Locked = json['Locked']; Files = JsonConverters.fromJson(json['Files'],'List',context!); NoFiles = json['NoFiles']; Sig = JsonConverters.fromJson(json['Sig'],'FormRecordSig',context!); return this; } Map toJson() => { 'K': K, 'L': L, 'T': T, 'Kind': Kind, 'V': V, 'Sensitive': Sensitive, 'CanReveal': CanReveal, 'Locked': Locked, 'Files': JsonConverters.toJson(Files,'List',context!), 'NoFiles': NoFiles, 'Sig': JsonConverters.toJson(Sig,'FormRecordSig',context!) }; getTypeName() => "FormRecordRow"; TypeContext? context = _ctx; } class FormRecordSection implements IConvertible { String? Title; List? Rows = []; FormRecordSection({this.Title,this.Rows}); FormRecordSection.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Title = json['Title']; Rows = JsonConverters.fromJson(json['Rows'],'List',context!); return this; } Map toJson() => { 'Title': Title, 'Rows': JsonConverters.toJson(Rows,'List',context!) }; getTypeName() => "FormRecordSection"; TypeContext? context = _ctx; } class FormRecordDoc implements IConvertible { String? Name; bool? Ok; String? Tag; String? Tone; FormRecordDoc({this.Name,this.Ok,this.Tag,this.Tone}); FormRecordDoc.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Name = json['Name']; Ok = json['Ok']; Tag = json['Tag']; Tone = json['Tone']; return this; } Map toJson() => { 'Name': Name, 'Ok': Ok, 'Tag': Tag, 'Tone': Tone }; getTypeName() => "FormRecordDoc"; TypeContext? context = _ctx; } class FormRecordComputed implements IConvertible { String? L; String? V; FormRecordComputed({this.L,this.V}); FormRecordComputed.fromJson(Map json) { fromMap(json); } fromMap(Map json) { L = json['L']; V = json['V']; return this; } Map toJson() => { 'L': L, 'V': V }; getTypeName() => "FormRecordComputed"; TypeContext? context = _ctx; } class FormRecordEvent implements IConvertible { String? Who; String? X; String? T; DateTime? At; String? Dot; FormRecordEvent({this.Who,this.X,this.T,this.At,this.Dot}); FormRecordEvent.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Who = json['Who']; X = json['X']; T = json['T']; At = JsonConverters.fromJson(json['At'],'DateTime',context!); Dot = json['Dot']; return this; } Map toJson() => { 'Who': Who, 'X': X, 'T': T, 'At': JsonConverters.toJson(At,'DateTime',context!), 'Dot': Dot }; getTypeName() => "FormRecordEvent"; TypeContext? context = _ctx; } class FormSubmissionRecord implements IConvertible { String? SubmissionUID; String? FormUID; String? FormName; String? Noun; String? Number; String? ApplicantName; FormStageInfo? Stage; List? Tags = []; int? AssigneeAgentId; String? AssigneeName; String? BranchName; DateTime? SubmittedAt; int? VersionNo; int? CurrentVersionNo; String? Email; String? Phone; String? ContactName; String? Meta; List? Stages = []; List? Moves = []; List? People = []; bool? CanEdit; bool? CanSensitive; List? Sections = []; List? Docs = []; String? DocCount; List? Computed = []; List? Timeline = []; List? Notes = []; List? Audit = []; FormSubmissionRecord({this.SubmissionUID,this.FormUID,this.FormName,this.Noun,this.Number,this.ApplicantName,this.Stage,this.Tags,this.AssigneeAgentId,this.AssigneeName,this.BranchName,this.SubmittedAt,this.VersionNo,this.CurrentVersionNo,this.Email,this.Phone,this.ContactName,this.Meta,this.Stages,this.Moves,this.People,this.CanEdit,this.CanSensitive,this.Sections,this.Docs,this.DocCount,this.Computed,this.Timeline,this.Notes,this.Audit}); FormSubmissionRecord.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SubmissionUID = json['SubmissionUID']; FormUID = json['FormUID']; FormName = json['FormName']; Noun = json['Noun']; Number = json['Number']; ApplicantName = json['ApplicantName']; Stage = JsonConverters.fromJson(json['Stage'],'FormStageInfo',context!); Tags = JsonConverters.fromJson(json['Tags'],'List',context!); AssigneeAgentId = json['AssigneeAgentId']; AssigneeName = json['AssigneeName']; BranchName = json['BranchName']; SubmittedAt = JsonConverters.fromJson(json['SubmittedAt'],'DateTime',context!); VersionNo = json['VersionNo']; CurrentVersionNo = json['CurrentVersionNo']; Email = json['Email']; Phone = json['Phone']; ContactName = json['ContactName']; Meta = json['Meta']; Stages = JsonConverters.fromJson(json['Stages'],'List',context!); Moves = JsonConverters.fromJson(json['Moves'],'List',context!); People = JsonConverters.fromJson(json['People'],'List',context!); CanEdit = json['CanEdit']; CanSensitive = json['CanSensitive']; Sections = JsonConverters.fromJson(json['Sections'],'List',context!); Docs = JsonConverters.fromJson(json['Docs'],'List',context!); DocCount = json['DocCount']; Computed = JsonConverters.fromJson(json['Computed'],'List',context!); Timeline = JsonConverters.fromJson(json['Timeline'],'List',context!); Notes = JsonConverters.fromJson(json['Notes'],'List',context!); Audit = JsonConverters.fromJson(json['Audit'],'List',context!); return this; } Map toJson() => { 'SubmissionUID': SubmissionUID, 'FormUID': FormUID, 'FormName': FormName, 'Noun': Noun, 'Number': Number, 'ApplicantName': ApplicantName, 'Stage': JsonConverters.toJson(Stage,'FormStageInfo',context!), 'Tags': JsonConverters.toJson(Tags,'List',context!), 'AssigneeAgentId': AssigneeAgentId, 'AssigneeName': AssigneeName, 'BranchName': BranchName, 'SubmittedAt': JsonConverters.toJson(SubmittedAt,'DateTime',context!), 'VersionNo': VersionNo, 'CurrentVersionNo': CurrentVersionNo, 'Email': Email, 'Phone': Phone, 'ContactName': ContactName, 'Meta': Meta, 'Stages': JsonConverters.toJson(Stages,'List',context!), 'Moves': JsonConverters.toJson(Moves,'List',context!), 'People': JsonConverters.toJson(People,'List',context!), 'CanEdit': CanEdit, 'CanSensitive': CanSensitive, 'Sections': JsonConverters.toJson(Sections,'List',context!), 'Docs': JsonConverters.toJson(Docs,'List',context!), 'DocCount': DocCount, 'Computed': JsonConverters.toJson(Computed,'List',context!), 'Timeline': JsonConverters.toJson(Timeline,'List',context!), 'Notes': JsonConverters.toJson(Notes,'List',context!), 'Audit': JsonConverters.toJson(Audit,'List',context!) }; getTypeName() => "FormSubmissionRecord"; 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; } // @Route("/v1/forms/submissions/{SubmissionUID}/assign", "POST") class FormSubmissionAssignRequest implements IReturn, IConvertible, IPost { String? SubmissionUID; int? AgentId; FormSubmissionAssignRequest({this.SubmissionUID,this.AgentId}); FormSubmissionAssignRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SubmissionUID = json['SubmissionUID']; AgentId = json['AgentId']; return this; } Map toJson() => { 'SubmissionUID': SubmissionUID, 'AgentId': AgentId }; createResponse() => FormSubmissionRecordResponse(); getResponseTypeName() => "FormSubmissionRecordResponse"; getTypeName() => "FormSubmissionAssignRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'FormStageInfo': TypeInfo(TypeOf.Class, create:() => FormStageInfo()), 'FormPerson': TypeInfo(TypeOf.Class, create:() => FormPerson()), 'FormRecordFile': TypeInfo(TypeOf.Class, create:() => FormRecordFile()), 'FormRecordSig': TypeInfo(TypeOf.Class, create:() => FormRecordSig()), 'FormRecordRow': TypeInfo(TypeOf.Class, create:() => FormRecordRow()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'FormRecordSection': TypeInfo(TypeOf.Class, create:() => FormRecordSection()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'FormRecordDoc': TypeInfo(TypeOf.Class, create:() => FormRecordDoc()), 'FormRecordComputed': TypeInfo(TypeOf.Class, create:() => FormRecordComputed()), 'FormRecordEvent': TypeInfo(TypeOf.Class, create:() => FormRecordEvent()), 'FormSubmissionRecord': TypeInfo(TypeOf.Class, create:() => FormSubmissionRecord()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'FormSubmissionRecordResponse': TypeInfo(TypeOf.Class, create:() => FormSubmissionRecordResponse()), 'FormSubmissionAssignRequest': TypeInfo(TypeOf.Class, create:() => FormSubmissionAssignRequest()), });