/* Options: Date: 2025-08-04 03:10:32 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: AddContractFileComment.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ContractBase { int? SupplierUserId; int? ContractId; ContractBase({this.SupplierUserId,this.ContractId}); ContractBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SupplierUserId = json['SupplierUserId']; ContractId = json['ContractId']; return this; } Map toJson() => { 'SupplierUserId': SupplierUserId, 'ContractId': ContractId }; getTypeName() => "ContractBase"; TypeContext? context = _ctx; } abstract class ContractVersionBase extends ContractBase { int? ContractVersionId; ContractVersionBase({this.ContractVersionId}); ContractVersionBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ContractVersionId = json['ContractVersionId']; return this; } Map toJson() => super.toJson()..addAll({ 'ContractVersionId': ContractVersionId }); getTypeName() => "ContractVersionBase"; TypeContext? context = _ctx; } class ContractDocumentType { static const ContractDocumentType Draft = const ContractDocumentType._(0); static const ContractDocumentType Comment = const ContractDocumentType._(1); final int _value; const ContractDocumentType._(this._value); int get value => _value; static List get values => const [Draft,Comment]; } abstract class AddContractVersionFileBase extends ContractVersionBase { ContractDocumentType? DocumentType; AddContractVersionFileBase({this.DocumentType}); AddContractVersionFileBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); DocumentType = JsonConverters.fromJson(json['DocumentType'],'ContractDocumentType',context!); return this; } Map toJson() => super.toJson()..addAll({ 'DocumentType': JsonConverters.toJson(DocumentType,'ContractDocumentType',context!) }); getTypeName() => "AddContractVersionFileBase"; 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}/contract/{contractid}/contractversion/{contractversionid}/file/comment", "POST") class AddContractFileComment extends AddContractVersionFileBase implements IReturn, IPost, IConvertible { ContractDocumentType? DocumentType; AddContractFileComment({this.DocumentType}); AddContractFileComment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); DocumentType = JsonConverters.fromJson(json['DocumentType'],'ContractDocumentType',context!); return this; } Map toJson() => super.toJson()..addAll({ 'DocumentType': JsonConverters.toJson(DocumentType,'ContractDocumentType',context!) }); createResponse() => SaveFileEntityResponse(); getResponseTypeName() => "SaveFileEntityResponse"; getTypeName() => "AddContractFileComment"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'szallitoiportal_be.veolia.hu', types: { 'ContractBase': TypeInfo(TypeOf.AbstractClass), 'ContractVersionBase': TypeInfo(TypeOf.AbstractClass), 'ContractDocumentType': TypeInfo(TypeOf.Enum, enumValues:ContractDocumentType.values), 'AddContractVersionFileBase': TypeInfo(TypeOf.AbstractClass), 'ModifyEntityResponse': TypeInfo(TypeOf.Class, create:() => ModifyEntityResponse()), 'SaveFileEntityResponse': TypeInfo(TypeOf.Class, create:() => SaveFileEntityResponse()), 'AddContractFileComment': TypeInfo(TypeOf.Class, create:() => AddContractFileComment()), });