/* Options: Date: 2025-08-04 03:39:17 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: AddSupplierFile.* //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]; } class ModifyEntityResponse extends ResponseBase implements IConvertible { int? Id; ModifyEntityResponse({this.Id}); ModifyEntityResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'Id': Id }); getTypeName() => "ModifyEntityResponse"; TypeContext? context = _ctx; } class SaveFileEntityResponse extends ModifyEntityResponse implements IConvertible { int? FileContentId; SaveFileEntityResponse({this.FileContentId}); SaveFileEntityResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); FileContentId = json['FileContentId']; return this; } Map toJson() => super.toJson()..addAll({ 'FileContentId': FileContentId }); getTypeName() => "SaveFileEntityResponse"; TypeContext? context = _ctx; } // @Route("/supplier/{supplierid}/file", "POST") class AddSupplierFile implements IReturn, IConvertible, IPost { int? SupplierId; SupplierDocumentType? DocumentType; AddSupplierFile({this.SupplierId,this.DocumentType}); AddSupplierFile.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SupplierId = json['SupplierId']; DocumentType = JsonConverters.fromJson(json['DocumentType'],'SupplierDocumentType',context!); return this; } Map toJson() => { 'SupplierId': SupplierId, 'DocumentType': JsonConverters.toJson(DocumentType,'SupplierDocumentType',context!) }; createResponse() => SaveFileEntityResponse(); getResponseTypeName() => "SaveFileEntityResponse"; getTypeName() => "AddSupplierFile"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'szallitoiportal_be.veolia.hu', types: { 'SupplierDocumentType': TypeInfo(TypeOf.Enum, enumValues:SupplierDocumentType.values), 'ModifyEntityResponse': TypeInfo(TypeOf.Class, create:() => ModifyEntityResponse()), 'SaveFileEntityResponse': TypeInfo(TypeOf.Class, create:() => SaveFileEntityResponse()), 'AddSupplierFile': TypeInfo(TypeOf.Class, create:() => AddSupplierFile()), });