/* Options: Date: 2026-01-27 18:40:48 Version: 8.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://buildmax.org //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: PostQuestion.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; enum Brand { Desktop, Hp, Kyocera, NeaScan, Samsung, FujiXerox, Ta, Utax, Epson, ScanFront400, Sharp, Ricoh, FujiFilm, } class DtoBase implements IConvertible { Brand? Brand; DtoBase({this.Brand}); DtoBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Brand = JsonConverters.fromJson(json['Brand'],'Brand',context!); return this; } Map toJson() => { 'Brand': JsonConverters.toJson(Brand,'Brand',context!) }; getTypeName() => "DtoBase"; TypeContext? context = _ctx; } class RequestBase extends DtoBase implements IConvertible { RequestBase(); RequestBase.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "RequestBase"; TypeContext? context = _ctx; } class QuestionRequestDto extends RequestBase implements IConvertible { String? TemplateGuid; String? QuestionGuid; String? Parent; String? FolderBrowser; QuestionRequestDto({this.TemplateGuid,this.QuestionGuid,this.Parent,this.FolderBrowser}); QuestionRequestDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); TemplateGuid = json['TemplateGuid']; QuestionGuid = json['QuestionGuid']; Parent = json['Parent']; FolderBrowser = json['FolderBrowser']; return this; } Map toJson() => super.toJson()..addAll({ 'TemplateGuid': TemplateGuid, 'QuestionGuid': QuestionGuid, 'Parent': Parent, 'FolderBrowser': FolderBrowser }); getTypeName() => "QuestionRequestDto"; TypeContext? context = _ctx; } // @Route("/{Brand}/question/{TemplateGuid}/{QuestionGuid}", "POST") class PostQuestion extends QuestionRequestDto implements IConvertible, IPost { String? QuestionValueReturned; String? QuestionValueDisplayed; String? SelectedFolder; PostQuestion({this.QuestionValueReturned,this.QuestionValueDisplayed,this.SelectedFolder}); PostQuestion.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); QuestionValueReturned = json['QuestionValueReturned']; QuestionValueDisplayed = json['QuestionValueDisplayed']; SelectedFolder = json['SelectedFolder']; return this; } Map toJson() => super.toJson()..addAll({ 'QuestionValueReturned': QuestionValueReturned, 'QuestionValueDisplayed': QuestionValueDisplayed, 'SelectedFolder': SelectedFolder }); getTypeName() => "PostQuestion"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'buildmax.org', types: { 'Brand': TypeInfo(TypeOf.Enum, enumValues:Brand.values), 'DtoBase': TypeInfo(TypeOf.Class, create:() => DtoBase()), 'RequestBase': TypeInfo(TypeOf.Class, create:() => RequestBase()), 'QuestionRequestDto': TypeInfo(TypeOf.Class, create:() => QuestionRequestDto()), 'PostQuestion': TypeInfo(TypeOf.Class, create:() => PostQuestion()), });