/* Options: Date: 2026-11-15 00:32:46 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: FormFillWithdrawRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; 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 FormFillStage implements IConvertible { String? Id; String? Label; String? Tone; String? Kind; FormFillStage({this.Id,this.Label,this.Tone,this.Kind}); FormFillStage.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() => "FormFillStage"; TypeContext? context = _ctx; } class FormFillStageSeen implements IConvertible { String? Id; DateTime? At; FormFillStageSeen({this.Id,this.At}); FormFillStageSeen.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; At = JsonConverters.fromJson(json['At'],'DateTime',context!); return this; } Map toJson() => { 'Id': Id, 'At': JsonConverters.toJson(At,'DateTime',context!) }; getTypeName() => "FormFillStageSeen"; TypeContext? context = _ctx; } class FormFillStatusResponse implements IConvertible { String? Number; String? FormName; String? Noun; String? TenantName; String? Stage; String? StageKind; List? Stages = []; List? Seen = []; DateTime? SubmittedAt; List? Receipt = []; bool? CanWithdraw; String? Lang; String? NounEs; ResponseStatus? ResponseStatus; FormFillStatusResponse({this.Number,this.FormName,this.Noun,this.TenantName,this.Stage,this.StageKind,this.Stages,this.Seen,this.SubmittedAt,this.Receipt,this.CanWithdraw,this.Lang,this.NounEs,this.ResponseStatus}); FormFillStatusResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Number = json['Number']; FormName = json['FormName']; Noun = json['Noun']; TenantName = json['TenantName']; Stage = json['Stage']; StageKind = json['StageKind']; Stages = JsonConverters.fromJson(json['Stages'],'List',context!); Seen = JsonConverters.fromJson(json['Seen'],'List',context!); SubmittedAt = JsonConverters.fromJson(json['SubmittedAt'],'DateTime',context!); Receipt = JsonConverters.fromJson(json['Receipt'],'List',context!); CanWithdraw = json['CanWithdraw']; Lang = json['Lang']; NounEs = json['NounEs']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Number': Number, 'FormName': FormName, 'Noun': Noun, 'TenantName': TenantName, 'Stage': Stage, 'StageKind': StageKind, 'Stages': JsonConverters.toJson(Stages,'List',context!), 'Seen': JsonConverters.toJson(Seen,'List',context!), 'SubmittedAt': JsonConverters.toJson(SubmittedAt,'DateTime',context!), 'Receipt': JsonConverters.toJson(Receipt,'List',context!), 'CanWithdraw': CanWithdraw, 'Lang': Lang, 'NounEs': NounEs, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "FormFillStatusResponse"; TypeContext? context = _ctx; } // @Route("/v1/formfill/status/{Token}/withdraw", "POST") class FormFillWithdrawRequest implements IReturn, IConvertible, IPost { String? Token; FormFillWithdrawRequest({this.Token}); FormFillWithdrawRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Token = json['Token']; return this; } Map toJson() => { 'Token': Token }; createResponse() => FormFillStatusResponse(); getResponseTypeName() => "FormFillStatusResponse"; getTypeName() => "FormFillWithdrawRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'FormFillReceiptLine': TypeInfo(TypeOf.Class, create:() => FormFillReceiptLine()), 'FormFillStage': TypeInfo(TypeOf.Class, create:() => FormFillStage()), 'FormFillStageSeen': TypeInfo(TypeOf.Class, create:() => FormFillStageSeen()), 'FormFillStatusResponse': TypeInfo(TypeOf.Class, create:() => FormFillStatusResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'FormFillWithdrawRequest': TypeInfo(TypeOf.Class, create:() => FormFillWithdrawRequest()), });