/* Options: Date: 2026-01-27 19:02:20 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: ShowScanSettings.* //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; } enum ScanColour { BlackAndWhite, Greyscale, Colour, Auto, } enum ScanOrientation { Portrait, Landscape, } enum ScanResolution { Dpi100, Dpi200, Dpi300, Dpi400, Dpi600, } enum ScanSide { Simplex, Duplex, } enum ScanSize { Auto, A3, A4, A5, B4, B5, Letter, Legal, Executive, Folio, AutoLong, A4R, A5R, A6R, B6R, } enum ScanSource { Adf, Glass, Auto, } enum ScanType { Text, Photo, TextAndPhoto, } enum BoolSetting { True, False, } abstract class IScanSettings { IScanSetting? Colour; IScanSetting? Orientation; IScanSetting? Resolution; IScanSetting? Sides; IScanSetting? Size; IScanSetting? Source; IScanSetting? Type; IScanSetting? ScanContinuously; IScanSetting? MixedSizes; } abstract class IScanSetting { bool? IsLocked; List>? Items; String? SelectedItem; } class GetTemplateResponse extends ScanResponseBase implements IConvertible { String? ServerAddress; int? ServerPort; GetTemplateResponse({this.ServerAddress,this.ServerPort}); GetTemplateResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ServerAddress = json['ServerAddress']; ServerPort = json['ServerPort']; return this; } Map toJson() => super.toJson()..addAll({ 'ServerAddress': ServerAddress, 'ServerPort': ServerPort }); getTypeName() => "GetTemplateResponse"; TypeContext? context = _ctx; } class GetScanSettingsResponse extends GetTemplateResponse implements IConvertible { IScanSettings? ScanSettings; String? ColourLabel; String? OrientationLabel; String? ResolutionLabel; String? SidesLabel; String? SizeLabel; String? SourceLabel; String? TypeLabel; String? ScanContinuouslyLabel; String? MixedSizesLabel; GetScanSettingsResponse({this.ScanSettings,this.ColourLabel,this.OrientationLabel,this.ResolutionLabel,this.SidesLabel,this.SizeLabel,this.SourceLabel,this.TypeLabel,this.ScanContinuouslyLabel,this.MixedSizesLabel}); GetScanSettingsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ScanSettings = JsonConverters.fromJson(json['ScanSettings'],'IScanSettings',context!); ColourLabel = json['ColourLabel']; OrientationLabel = json['OrientationLabel']; ResolutionLabel = json['ResolutionLabel']; SidesLabel = json['SidesLabel']; SizeLabel = json['SizeLabel']; SourceLabel = json['SourceLabel']; TypeLabel = json['TypeLabel']; ScanContinuouslyLabel = json['ScanContinuouslyLabel']; MixedSizesLabel = json['MixedSizesLabel']; return this; } Map toJson() => super.toJson()..addAll({ 'ScanSettings': JsonConverters.toJson(ScanSettings,'IScanSettings',context!), 'ColourLabel': ColourLabel, 'OrientationLabel': OrientationLabel, 'ResolutionLabel': ResolutionLabel, 'SidesLabel': SidesLabel, 'SizeLabel': SizeLabel, 'SourceLabel': SourceLabel, 'TypeLabel': TypeLabel, 'ScanContinuouslyLabel': ScanContinuouslyLabel, 'MixedSizesLabel': MixedSizesLabel }); getTypeName() => "GetScanSettingsResponse"; TypeContext? context = _ctx; } // @Route("/{Brand}/showscansettings/{TemplateGuid}") class ShowScanSettings extends RequestBase implements IReturn, IConvertible, IPost { String? TemplateGuid; ShowScanSettings({this.TemplateGuid}); ShowScanSettings.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); TemplateGuid = json['TemplateGuid']; return this; } Map toJson() => super.toJson()..addAll({ 'TemplateGuid': TemplateGuid }); createResponse() => GetScanSettingsResponse(); getResponseTypeName() => "GetScanSettingsResponse"; getTypeName() => "ShowScanSettings"; 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()), 'ScanColour': TypeInfo(TypeOf.Enum, enumValues:ScanColour.values), 'ScanOrientation': TypeInfo(TypeOf.Enum, enumValues:ScanOrientation.values), 'ScanResolution': TypeInfo(TypeOf.Enum, enumValues:ScanResolution.values), 'ScanSide': TypeInfo(TypeOf.Enum, enumValues:ScanSide.values), 'ScanSize': TypeInfo(TypeOf.Enum, enumValues:ScanSize.values), 'ScanSource': TypeInfo(TypeOf.Enum, enumValues:ScanSource.values), 'ScanType': TypeInfo(TypeOf.Enum, enumValues:ScanType.values), 'BoolSetting': TypeInfo(TypeOf.Enum, enumValues:BoolSetting.values), 'IScanSettings': TypeInfo(TypeOf.Interface), 'IScanSetting': TypeInfo(TypeOf.Interface), 'GetTemplateResponse': TypeInfo(TypeOf.Class, create:() => GetTemplateResponse()), 'GetScanSettingsResponse': TypeInfo(TypeOf.Class, create:() => GetScanSettingsResponse()), 'ShowScanSettings': TypeInfo(TypeOf.Class, create:() => ShowScanSettings()), });