/* Options: Date: 2026-12-06 02:08:03 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: FormReportRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class FormReportBar implements IConvertible { String? Id; String? Label; int? N; double? Value; String? Text; String? Tone; FormReportBar({this.Id,this.Label,this.N,this.Value,this.Text,this.Tone}); FormReportBar.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Label = json['Label']; N = json['N']; Value = JsonConverters.toDouble(json['Value']); Text = json['Text']; Tone = json['Tone']; return this; } Map toJson() => { 'Id': Id, 'Label': Label, 'N': N, 'Value': Value, 'Text': Text, 'Tone': Tone }; getTypeName() => "FormReportBar"; TypeContext? context = _ctx; } class FormReportResponse implements IConvertible { int? Submissions; int? Decided; int? Approved; String? RateText; String? DecisionText; int? Drafts; int? Sla; int? DraftDays; bool? IsRecord; List? Weeks = []; List? Stages = []; List? Pages = []; int? Started; int? SubmittedPct; String? DropFrom; int? DropN; List? Durations = []; List? Fields = []; String? Field; String? FieldLabel; List? Options = []; List? Reasons = []; ResponseStatus? ResponseStatus; FormReportResponse({this.Submissions,this.Decided,this.Approved,this.RateText,this.DecisionText,this.Drafts,this.Sla,this.DraftDays,this.IsRecord,this.Weeks,this.Stages,this.Pages,this.Started,this.SubmittedPct,this.DropFrom,this.DropN,this.Durations,this.Fields,this.Field,this.FieldLabel,this.Options,this.Reasons,this.ResponseStatus}); FormReportResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Submissions = json['Submissions']; Decided = json['Decided']; Approved = json['Approved']; RateText = json['RateText']; DecisionText = json['DecisionText']; Drafts = json['Drafts']; Sla = json['Sla']; DraftDays = json['DraftDays']; IsRecord = json['IsRecord']; Weeks = JsonConverters.fromJson(json['Weeks'],'List',context!); Stages = JsonConverters.fromJson(json['Stages'],'List',context!); Pages = JsonConverters.fromJson(json['Pages'],'List',context!); Started = json['Started']; SubmittedPct = json['SubmittedPct']; DropFrom = json['DropFrom']; DropN = json['DropN']; Durations = JsonConverters.fromJson(json['Durations'],'List',context!); Fields = JsonConverters.fromJson(json['Fields'],'List',context!); Field = json['Field']; FieldLabel = json['FieldLabel']; Options = JsonConverters.fromJson(json['Options'],'List',context!); Reasons = JsonConverters.fromJson(json['Reasons'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Submissions': Submissions, 'Decided': Decided, 'Approved': Approved, 'RateText': RateText, 'DecisionText': DecisionText, 'Drafts': Drafts, 'Sla': Sla, 'DraftDays': DraftDays, 'IsRecord': IsRecord, 'Weeks': JsonConverters.toJson(Weeks,'List',context!), 'Stages': JsonConverters.toJson(Stages,'List',context!), 'Pages': JsonConverters.toJson(Pages,'List',context!), 'Started': Started, 'SubmittedPct': SubmittedPct, 'DropFrom': DropFrom, 'DropN': DropN, 'Durations': JsonConverters.toJson(Durations,'List',context!), 'Fields': JsonConverters.toJson(Fields,'List',context!), 'Field': Field, 'FieldLabel': FieldLabel, 'Options': JsonConverters.toJson(Options,'List',context!), 'Reasons': JsonConverters.toJson(Reasons,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "FormReportResponse"; TypeContext? context = _ctx; } // @Route("/v1/forms/{FormUID}/reports", "GET") class FormReportRequest implements IReturn, IConvertible, IGet { String? FormUID; String? Field; FormReportRequest({this.FormUID,this.Field}); FormReportRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { FormUID = json['FormUID']; Field = json['Field']; return this; } Map toJson() => { 'FormUID': FormUID, 'Field': Field }; createResponse() => FormReportResponse(); getResponseTypeName() => "FormReportResponse"; getTypeName() => "FormReportRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'FormReportBar': TypeInfo(TypeOf.Class, create:() => FormReportBar()), 'FormReportResponse': TypeInfo(TypeOf.Class, create:() => FormReportResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'FormReportRequest': TypeInfo(TypeOf.Class, create:() => FormReportRequest()), });