/* Options: Date: 2026-01-27 18:42:59 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: GetScanSBC.* //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 ResponseBase extends DtoBase implements IConvertible { String? SelectedUiLanguage; String? svSession; String? Title; String? PageTip; bool? NewBrowser; bool? ScanFront400TA; bool? ScanFront400UTAX; ResponseBase({this.SelectedUiLanguage,this.svSession,this.Title,this.PageTip,this.NewBrowser,this.ScanFront400TA,this.ScanFront400UTAX}); ResponseBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); SelectedUiLanguage = json['SelectedUiLanguage']; svSession = json['svSession']; Title = json['Title']; PageTip = json['PageTip']; NewBrowser = json['NewBrowser']; ScanFront400TA = json['ScanFront400TA']; ScanFront400UTAX = json['ScanFront400UTAX']; return this; } Map toJson() => super.toJson()..addAll({ 'SelectedUiLanguage': SelectedUiLanguage, 'svSession': svSession, 'Title': Title, 'PageTip': PageTip, 'NewBrowser': NewBrowser, 'ScanFront400TA': ScanFront400TA, 'ScanFront400UTAX': ScanFront400UTAX }); getTypeName() => "ResponseBase"; TypeContext? context = _ctx; } class GetScanResponse extends ResponseBase implements IConvertible { bool? DoGetImage; String? TemplateGuid; String? FileNameGuid; String? ServerUrlRoot; Uint8List? TemplateIcon; String? TemplateName; GetScanResponse({this.DoGetImage,this.TemplateGuid,this.FileNameGuid,this.ServerUrlRoot,this.TemplateIcon,this.TemplateName}); GetScanResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); DoGetImage = json['DoGetImage']; TemplateGuid = json['TemplateGuid']; FileNameGuid = json['FileNameGuid']; ServerUrlRoot = json['ServerUrlRoot']; TemplateIcon = JsonConverters.fromJson(json['TemplateIcon'],'Uint8List',context!); TemplateName = json['TemplateName']; return this; } Map toJson() => super.toJson()..addAll({ 'DoGetImage': DoGetImage, 'TemplateGuid': TemplateGuid, 'FileNameGuid': FileNameGuid, 'ServerUrlRoot': ServerUrlRoot, 'TemplateIcon': JsonConverters.toJson(TemplateIcon,'Uint8List',context!), 'TemplateName': TemplateName }); getTypeName() => "GetScanResponse"; TypeContext? context = _ctx; } // @Route("/{Brand}/scan", "POST") class GetScanSBC extends RequestBase implements IReturn, IConvertible, IPost { GetScanSBC(); GetScanSBC.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => GetScanResponse(); getResponseTypeName() => "GetScanResponse"; getTypeName() => "GetScanSBC"; 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()), 'ResponseBase': TypeInfo(TypeOf.Class, create:() => ResponseBase()), 'GetScanResponse': TypeInfo(TypeOf.Class, create:() => GetScanResponse()), 'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)), 'GetScanSBC': TypeInfo(TypeOf.Class, create:() => GetScanSBC()), });