/* Options: Date: 2025-08-04 04:11:47 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: EditTenderStatus.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; 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 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/{tenderid}/status", "PUT") class EditTenderStatus implements IReturn, IPut, IConvertible { int? TenderId; TenderStatus? Status; EditTenderStatus({this.TenderId,this.Status}); EditTenderStatus.fromJson(Map json) { fromMap(json); } fromMap(Map json) { TenderId = json['TenderId']; Status = JsonConverters.fromJson(json['Status'],'TenderStatus',context!); return this; } Map toJson() => { 'TenderId': TenderId, 'Status': JsonConverters.toJson(Status,'TenderStatus',context!) }; createResponse() => ModifyEntityResponse(); getResponseTypeName() => "ModifyEntityResponse"; getTypeName() => "EditTenderStatus"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'szallitoiportal_be.veolia.hu', types: { 'TenderStatus': TypeInfo(TypeOf.Enum, enumValues:TenderStatus.values), 'ResponseBase': TypeInfo(TypeOf.AbstractClass), 'ModifyEntityResponse': TypeInfo(TypeOf.Class, create:() => ModifyEntityResponse()), 'EditTenderStatus': TypeInfo(TypeOf.Class, create:() => EditTenderStatus()), });