/* Options: Date: 2026-11-14 02:56:34 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: FormArchiveRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class FormStats implements IConvertible { int? Total; int? NeedDecision; int? Waiting; int? Overdue; FormStats({this.Total,this.NeedDecision,this.Waiting,this.Overdue}); FormStats.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Total = json['Total']; NeedDecision = json['NeedDecision']; Waiting = json['Waiting']; Overdue = json['Overdue']; return this; } Map toJson() => { 'Total': Total, 'NeedDecision': NeedDecision, 'Waiting': Waiting, 'Overdue': Overdue }; getTypeName() => "FormStats"; TypeContext? context = _ctx; } class FormCard implements IConvertible { String? FormUID; String? Name; String? Slug; String? Noun; String? NumberPrefix; String? Description; String? Tone; String? Status; int? PublishedVersionNo; DateTime? PublishedAt; String? PublishedBy; bool? DraftDirty; DateTime? DraftUpdatedAt; String? DraftUpdatedBy; String? PackLabel; String? SettingsJson; FormStats? Stats; List? Offered = []; String? CreatedBy; DateTime? CreatedAt; DateTime? UpdatedAt; FormCard({this.FormUID,this.Name,this.Slug,this.Noun,this.NumberPrefix,this.Description,this.Tone,this.Status,this.PublishedVersionNo,this.PublishedAt,this.PublishedBy,this.DraftDirty,this.DraftUpdatedAt,this.DraftUpdatedBy,this.PackLabel,this.SettingsJson,this.Stats,this.Offered,this.CreatedBy,this.CreatedAt,this.UpdatedAt}); FormCard.fromJson(Map json) { fromMap(json); } fromMap(Map json) { FormUID = json['FormUID']; Name = json['Name']; Slug = json['Slug']; Noun = json['Noun']; NumberPrefix = json['NumberPrefix']; Description = json['Description']; Tone = json['Tone']; Status = json['Status']; PublishedVersionNo = json['PublishedVersionNo']; PublishedAt = JsonConverters.fromJson(json['PublishedAt'],'DateTime',context!); PublishedBy = json['PublishedBy']; DraftDirty = json['DraftDirty']; DraftUpdatedAt = JsonConverters.fromJson(json['DraftUpdatedAt'],'DateTime',context!); DraftUpdatedBy = json['DraftUpdatedBy']; PackLabel = json['PackLabel']; SettingsJson = json['SettingsJson']; Stats = JsonConverters.fromJson(json['Stats'],'FormStats',context!); Offered = JsonConverters.fromJson(json['Offered'],'List',context!); CreatedBy = json['CreatedBy']; CreatedAt = JsonConverters.fromJson(json['CreatedAt'],'DateTime',context!); UpdatedAt = JsonConverters.fromJson(json['UpdatedAt'],'DateTime',context!); return this; } Map toJson() => { 'FormUID': FormUID, 'Name': Name, 'Slug': Slug, 'Noun': Noun, 'NumberPrefix': NumberPrefix, 'Description': Description, 'Tone': Tone, 'Status': Status, 'PublishedVersionNo': PublishedVersionNo, 'PublishedAt': JsonConverters.toJson(PublishedAt,'DateTime',context!), 'PublishedBy': PublishedBy, 'DraftDirty': DraftDirty, 'DraftUpdatedAt': JsonConverters.toJson(DraftUpdatedAt,'DateTime',context!), 'DraftUpdatedBy': DraftUpdatedBy, 'PackLabel': PackLabel, 'SettingsJson': SettingsJson, 'Stats': JsonConverters.toJson(Stats,'FormStats',context!), 'Offered': JsonConverters.toJson(Offered,'List',context!), 'CreatedBy': CreatedBy, 'CreatedAt': JsonConverters.toJson(CreatedAt,'DateTime',context!), 'UpdatedAt': JsonConverters.toJson(UpdatedAt,'DateTime',context!) }; getTypeName() => "FormCard"; TypeContext? context = _ctx; } class FormDetail extends FormCard implements IConvertible { String? DraftJson; int? DraftRev; String? SourceTemplateUID; List? Warnings = []; List? AlwaysHidden = []; FormDetail({this.DraftJson,this.DraftRev,this.SourceTemplateUID,this.Warnings,this.AlwaysHidden}); FormDetail.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); DraftJson = json['DraftJson']; DraftRev = json['DraftRev']; SourceTemplateUID = json['SourceTemplateUID']; Warnings = JsonConverters.fromJson(json['Warnings'],'List',context!); AlwaysHidden = JsonConverters.fromJson(json['AlwaysHidden'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'DraftJson': DraftJson, 'DraftRev': DraftRev, 'SourceTemplateUID': SourceTemplateUID, 'Warnings': JsonConverters.toJson(Warnings,'List',context!), 'AlwaysHidden': JsonConverters.toJson(AlwaysHidden,'List',context!) }); getTypeName() => "FormDetail"; TypeContext? context = _ctx; } class FormResponse implements IConvertible { FormDetail? Form; ResponseStatus? ResponseStatus; FormResponse({this.Form,this.ResponseStatus}); FormResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Form = JsonConverters.fromJson(json['Form'],'FormDetail',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Form': JsonConverters.toJson(Form,'FormDetail',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "FormResponse"; TypeContext? context = _ctx; } // @Route("/v1/forms/{FormUID}/archive", "POST") class FormArchiveRequest implements IReturn, IConvertible, IPost { String? FormUID; FormArchiveRequest({this.FormUID}); FormArchiveRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { FormUID = json['FormUID']; return this; } Map toJson() => { 'FormUID': FormUID }; createResponse() => FormResponse(); getResponseTypeName() => "FormResponse"; getTypeName() => "FormArchiveRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'FormStats': TypeInfo(TypeOf.Class, create:() => FormStats()), 'FormCard': TypeInfo(TypeOf.Class, create:() => FormCard()), 'FormDetail': TypeInfo(TypeOf.Class, create:() => FormDetail()), 'FormResponse': TypeInfo(TypeOf.Class, create:() => FormResponse()), 'FormArchiveRequest': TypeInfo(TypeOf.Class, create:() => FormArchiveRequest()), });