/* Options: Date: 2025-08-04 03:10:12 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: AddPurchaseOrderFileComment.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class PurchaseOrderBase { int? PurchaseOrderId; int? SupplierUserId; PurchaseOrderBase({this.PurchaseOrderId,this.SupplierUserId}); PurchaseOrderBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { PurchaseOrderId = json['PurchaseOrderId']; SupplierUserId = json['SupplierUserId']; return this; } Map toJson() => { 'PurchaseOrderId': PurchaseOrderId, 'SupplierUserId': SupplierUserId }; getTypeName() => "PurchaseOrderBase"; TypeContext? context = _ctx; } abstract class PurchaseOrderVersionBase extends PurchaseOrderBase { int? PurchaseOrderVersionId; PurchaseOrderVersionBase({this.PurchaseOrderVersionId}); PurchaseOrderVersionBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); PurchaseOrderVersionId = json['PurchaseOrderVersionId']; return this; } Map toJson() => super.toJson()..addAll({ 'PurchaseOrderVersionId': PurchaseOrderVersionId }); getTypeName() => "PurchaseOrderVersionBase"; TypeContext? context = _ctx; } class PurchaseOrderDocumentType { static const PurchaseOrderDocumentType Draft = const PurchaseOrderDocumentType._(0); static const PurchaseOrderDocumentType Comment = const PurchaseOrderDocumentType._(1); final int _value; const PurchaseOrderDocumentType._(this._value); int get value => _value; static List get values => const [Draft,Comment]; } abstract class AddPurchaseOrderVersionFileBase extends PurchaseOrderVersionBase { PurchaseOrderDocumentType? DocumentType; AddPurchaseOrderVersionFileBase({this.DocumentType}); AddPurchaseOrderVersionFileBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); DocumentType = JsonConverters.fromJson(json['DocumentType'],'PurchaseOrderDocumentType',context!); return this; } Map toJson() => super.toJson()..addAll({ 'DocumentType': JsonConverters.toJson(DocumentType,'PurchaseOrderDocumentType',context!) }); getTypeName() => "AddPurchaseOrderVersionFileBase"; 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; } 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("/user/{supplieruserid}/purchaseorder/{purchaseorderid}/purchaseorderversion/{purchaseorderversionid}/file/comment", "POST") class AddPurchaseOrderFileComment extends AddPurchaseOrderVersionFileBase implements IReturn, IPost, IConvertible { PurchaseOrderDocumentType? DocumentType; AddPurchaseOrderFileComment({this.DocumentType}); AddPurchaseOrderFileComment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); DocumentType = JsonConverters.fromJson(json['DocumentType'],'PurchaseOrderDocumentType',context!); return this; } Map toJson() => super.toJson()..addAll({ 'DocumentType': JsonConverters.toJson(DocumentType,'PurchaseOrderDocumentType',context!) }); createResponse() => SaveFileEntityResponse(); getResponseTypeName() => "SaveFileEntityResponse"; getTypeName() => "AddPurchaseOrderFileComment"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'szallitoiportal_be.veolia.hu', types: { 'PurchaseOrderBase': TypeInfo(TypeOf.AbstractClass), 'PurchaseOrderVersionBase': TypeInfo(TypeOf.AbstractClass), 'PurchaseOrderDocumentType': TypeInfo(TypeOf.Enum, enumValues:PurchaseOrderDocumentType.values), 'AddPurchaseOrderVersionFileBase': TypeInfo(TypeOf.AbstractClass), 'ModifyEntityResponse': TypeInfo(TypeOf.Class, create:() => ModifyEntityResponse()), 'SaveFileEntityResponse': TypeInfo(TypeOf.Class, create:() => SaveFileEntityResponse()), 'AddPurchaseOrderFileComment': TypeInfo(TypeOf.Class, create:() => AddPurchaseOrderFileComment()), });