/* Options: Date: 2025-08-04 03:25:41 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: AddComplianceFile.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ComplianceBase { int? TenderId; int? UserId; int? ComplianceId; ComplianceBase({this.TenderId,this.UserId,this.ComplianceId}); ComplianceBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { TenderId = json['TenderId']; UserId = json['UserId']; ComplianceId = json['ComplianceId']; return this; } Map toJson() => { 'TenderId': TenderId, 'UserId': UserId, 'ComplianceId': ComplianceId }; getTypeName() => "ComplianceBase"; TypeContext? context = _ctx; } class ComplianceDocumentType { static const ComplianceDocumentType SignedCompliance = const ComplianceDocumentType._(0); static const ComplianceDocumentType GeneratedXlsx = const ComplianceDocumentType._(1); final int _value; const ComplianceDocumentType._(this._value); int get value => _value; static List get values => const [SignedCompliance,GeneratedXlsx]; } 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("/tender/{tenderid}/user/{userid}/compliance/{complianceid}/file", "POST") class AddComplianceFile extends ComplianceBase implements IReturn, IPost, IConvertible { ComplianceDocumentType? DocumentType; AddComplianceFile({this.DocumentType}); AddComplianceFile.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); DocumentType = JsonConverters.fromJson(json['DocumentType'],'ComplianceDocumentType',context!); return this; } Map toJson() => super.toJson()..addAll({ 'DocumentType': JsonConverters.toJson(DocumentType,'ComplianceDocumentType',context!) }); createResponse() => SaveFileEntityResponse(); getResponseTypeName() => "SaveFileEntityResponse"; getTypeName() => "AddComplianceFile"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'szallitoiportal_be.veolia.hu', types: { 'ComplianceBase': TypeInfo(TypeOf.AbstractClass), 'ComplianceDocumentType': TypeInfo(TypeOf.Enum, enumValues:ComplianceDocumentType.values), 'ModifyEntityResponse': TypeInfo(TypeOf.Class, create:() => ModifyEntityResponse()), 'SaveFileEntityResponse': TypeInfo(TypeOf.Class, create:() => SaveFileEntityResponse()), 'AddComplianceFile': TypeInfo(TypeOf.Class, create:() => AddComplianceFile()), });