/* Options: Date: 2025-08-04 04:41:09 Version: 6.110 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://szallitoiportal-be.veolia.hu //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: BrowseSupplierFile.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class SupplierDocumentType { static const SupplierDocumentType RegistrationForm = const SupplierDocumentType._(0); static const SupplierDocumentType SpecimenSignature = const SupplierDocumentType._(1); final int _value; const SupplierDocumentType._(this._value); int get value => _value; static List get values => const [RegistrationForm,SpecimenSignature]; } abstract class ResponseBase { ResponseStatus? ResponseStatus; ResponseBase({this.ResponseStatus}); ResponseBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "ResponseBase"; TypeContext? context = _ctx; } abstract class BrowseFileResponseBase { int? Id; int? FileContentId; String? FileName; int? Size; BrowseFileResponseBase({this.Id,this.FileContentId,this.FileName,this.Size}); BrowseFileResponseBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; FileContentId = json['FileContentId']; FileName = json['FileName']; Size = json['Size']; return this; } Map toJson() => { 'Id': Id, 'FileContentId': FileContentId, 'FileName': FileName, 'Size': Size }; getTypeName() => "BrowseFileResponseBase"; TypeContext? context = _ctx; } class SupplierFileDetails extends BrowseFileResponseBase implements IConvertible { int? SupplierId; SupplierDocumentType? DocumentType; SupplierFileDetails({this.SupplierId,this.DocumentType}); SupplierFileDetails.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); SupplierId = json['SupplierId']; DocumentType = JsonConverters.fromJson(json['DocumentType'],'SupplierDocumentType',context!); return this; } Map toJson() => super.toJson()..addAll({ 'SupplierId': SupplierId, 'DocumentType': JsonConverters.toJson(DocumentType,'SupplierDocumentType',context!) }); getTypeName() => "SupplierFileDetails"; TypeContext? context = _ctx; } class BrowseSupplierFileResponse extends ResponseBase implements IConvertible { SupplierFileDetails? SupplierFile; BrowseSupplierFileResponse({this.SupplierFile}); BrowseSupplierFileResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); SupplierFile = JsonConverters.fromJson(json['SupplierFile'],'SupplierFileDetails',context!); return this; } Map toJson() => super.toJson()..addAll({ 'SupplierFile': JsonConverters.toJson(SupplierFile,'SupplierFileDetails',context!) }); getTypeName() => "BrowseSupplierFileResponse"; TypeContext? context = _ctx; } // @Route("/supplier/{supplierid}/file/{supplierfileid}", "GET") class BrowseSupplierFile implements IReturn, IGet, IConvertible { int? SupplierId; int? SupplierFileId; BrowseSupplierFile({this.SupplierId,this.SupplierFileId}); BrowseSupplierFile.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SupplierId = json['SupplierId']; SupplierFileId = json['SupplierFileId']; return this; } Map toJson() => { 'SupplierId': SupplierId, 'SupplierFileId': SupplierFileId }; createResponse() => BrowseSupplierFileResponse(); getResponseTypeName() => "BrowseSupplierFileResponse"; getTypeName() => "BrowseSupplierFile"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'szallitoiportal_be.veolia.hu', types: { 'SupplierDocumentType': TypeInfo(TypeOf.Enum, enumValues:SupplierDocumentType.values), 'ResponseBase': TypeInfo(TypeOf.AbstractClass), 'BrowseFileResponseBase': TypeInfo(TypeOf.AbstractClass), 'SupplierFileDetails': TypeInfo(TypeOf.Class, create:() => SupplierFileDetails()), 'BrowseSupplierFileResponse': TypeInfo(TypeOf.Class, create:() => BrowseSupplierFileResponse()), 'BrowseSupplierFile': TypeInfo(TypeOf.Class, create:() => BrowseSupplierFile()), });