/* Options: Date: 2025-08-04 04:41:08 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: BrowseAllSupplierFile.* //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 BrowseAllSupplierFileResponse extends ResponseBase implements IConvertible { List? SupplierFiles; BrowseAllSupplierFileResponse({this.SupplierFiles}); BrowseAllSupplierFileResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); SupplierFiles = JsonConverters.fromJson(json['SupplierFiles'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'SupplierFiles': JsonConverters.toJson(SupplierFiles,'List',context!) }); getTypeName() => "BrowseAllSupplierFileResponse"; TypeContext? context = _ctx; } // @Route("/supplier/{supplierid}/file", "GET") class BrowseAllSupplierFile implements IReturn, IGet, IConvertible { int? SupplierId; BrowseAllSupplierFile({this.SupplierId}); BrowseAllSupplierFile.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SupplierId = json['SupplierId']; return this; } Map toJson() => { 'SupplierId': SupplierId }; createResponse() => BrowseAllSupplierFileResponse(); getResponseTypeName() => "BrowseAllSupplierFileResponse"; getTypeName() => "BrowseAllSupplierFile"; 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()), 'BrowseAllSupplierFileResponse': TypeInfo(TypeOf.Class, create:() => BrowseAllSupplierFileResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'BrowseAllSupplierFile': TypeInfo(TypeOf.Class, create:() => BrowseAllSupplierFile()), });