/* Options: Date: 2025-08-04 03:45:20 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: AddTender.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ProcedureType { static const ProcedureType Competition = const ProcedureType._(0); static const ProcedureType Simplified = const ProcedureType._(1); final int _value; const ProcedureType._(this._value); int get value => _value; static List get values => const [Competition,Simplified]; } class TenderType { static const TenderType Private = const TenderType._(0); static const TenderType Public = const TenderType._(1); final int _value; const TenderType._(this._value); int get value => _value; static List get values => const [Private,Public]; } class TenderStatus { static const TenderStatus FirstRound = const TenderStatus._(0); static const TenderStatus SecondRound = const TenderStatus._(1); static const TenderStatus ThirdRound = const TenderStatus._(2); static const TenderStatus Successful = const TenderStatus._(3); static const TenderStatus UnSuccessful = const TenderStatus._(4); static const TenderStatus Revoked = const TenderStatus._(5); final int _value; const TenderStatus._(this._value); int get value => _value; static List get values => const [FirstRound,SecondRound,ThirdRound,Successful,UnSuccessful,Revoked]; } abstract class TenderBase { String? TenderIdentifier; TenderType? TenderType; String? Subject; String? ProcurementContact; String? ProcurementContactEmail; String? ProcurementContactPhone; String? ProfessionalContact; String? ProfessionalContactEmail; String? ProfessionalContactPhone; String? Result; TenderStatus? Status; TenderBase({this.TenderIdentifier,this.TenderType,this.Subject,this.ProcurementContact,this.ProcurementContactEmail,this.ProcurementContactPhone,this.ProfessionalContact,this.ProfessionalContactEmail,this.ProfessionalContactPhone,this.Result,this.Status}); TenderBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { TenderIdentifier = json['TenderIdentifier']; TenderType = JsonConverters.fromJson(json['TenderType'],'TenderType',context!); Subject = json['Subject']; ProcurementContact = json['ProcurementContact']; ProcurementContactEmail = json['ProcurementContactEmail']; ProcurementContactPhone = json['ProcurementContactPhone']; ProfessionalContact = json['ProfessionalContact']; ProfessionalContactEmail = json['ProfessionalContactEmail']; ProfessionalContactPhone = json['ProfessionalContactPhone']; Result = json['Result']; Status = JsonConverters.fromJson(json['Status'],'TenderStatus',context!); return this; } Map toJson() => { 'TenderIdentifier': TenderIdentifier, 'TenderType': JsonConverters.toJson(TenderType,'TenderType',context!), 'Subject': Subject, 'ProcurementContact': ProcurementContact, 'ProcurementContactEmail': ProcurementContactEmail, 'ProcurementContactPhone': ProcurementContactPhone, 'ProfessionalContact': ProfessionalContact, 'ProfessionalContactEmail': ProfessionalContactEmail, 'ProfessionalContactPhone': ProfessionalContactPhone, 'Result': Result, 'Status': JsonConverters.toJson(Status,'TenderStatus',context!) }; getTypeName() => "TenderBase"; TypeContext? context = _ctx; } 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; } 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; } // @Route("/tender", "POST") class AddTender extends TenderBase implements IReturn, IPost, IConvertible { ProcedureType? ProcedureType; AddTender({this.ProcedureType}); AddTender.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ProcedureType = JsonConverters.fromJson(json['ProcedureType'],'ProcedureType',context!); return this; } Map toJson() => super.toJson()..addAll({ 'ProcedureType': JsonConverters.toJson(ProcedureType,'ProcedureType',context!) }); createResponse() => ModifyEntityResponse(); getResponseTypeName() => "ModifyEntityResponse"; getTypeName() => "AddTender"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'szallitoiportal_be.veolia.hu', types: { 'ProcedureType': TypeInfo(TypeOf.Enum, enumValues:ProcedureType.values), 'TenderType': TypeInfo(TypeOf.Enum, enumValues:TenderType.values), 'TenderStatus': TypeInfo(TypeOf.Enum, enumValues:TenderStatus.values), 'TenderBase': TypeInfo(TypeOf.AbstractClass), 'ResponseBase': TypeInfo(TypeOf.AbstractClass), 'ModifyEntityResponse': TypeInfo(TypeOf.Class, create:() => ModifyEntityResponse()), 'AddTender': TypeInfo(TypeOf.Class, create:() => AddTender()), });