/* Options: Date: 2025-08-04 04:41:08 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: BrowseContractVersion.* //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 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 ReviewStatus { static const ReviewStatus Draft = const ReviewStatus._(0); static const ReviewStatus Commented = const ReviewStatus._(1); static const ReviewStatus Accepted = const ReviewStatus._(2); final int _value; const ReviewStatus._(this._value); int get value => _value; static List get values => const [Draft,Commented,Accepted]; } class ContractVersionSimple implements IConvertible { int? Id; int? ContractId; int? Version; bool? IsViewed; ReviewStatus? Status; ContractVersionSimple({this.Id,this.ContractId,this.Version,this.IsViewed,this.Status}); ContractVersionSimple.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; ContractId = json['ContractId']; Version = json['Version']; IsViewed = json['IsViewed']; Status = JsonConverters.fromJson(json['Status'],'ReviewStatus',context!); return this; } Map toJson() => { 'Id': Id, 'ContractId': ContractId, 'Version': Version, 'IsViewed': IsViewed, 'Status': JsonConverters.toJson(Status,'ReviewStatus',context!) }; getTypeName() => "ContractVersionSimple"; TypeContext? context = _ctx; } abstract class BrowseFileResponseBase { int? Id; int? FileContentId; String? FileName; int? Size; BrowseFileResponseBase({this.Id,this.FileContentId,this.FileName,this.Size}); BrowseFileResponseBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; FileContentId = json['FileContentId']; FileName = json['FileName']; Size = json['Size']; return this; } Map toJson() => { 'Id': Id, 'FileContentId': FileContentId, 'FileName': FileName, 'Size': Size }; getTypeName() => "BrowseFileResponseBase"; TypeContext? context = _ctx; } class ContractFileSimple extends BrowseFileResponseBase implements IConvertible { int? ContractVersionId; ContractDocumentType? DocumentType; ContractFileSimple({this.ContractVersionId,this.DocumentType}); ContractFileSimple.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ContractVersionId = json['ContractVersionId']; DocumentType = JsonConverters.fromJson(json['DocumentType'],'ContractDocumentType',context!); return this; } Map toJson() => super.toJson()..addAll({ 'ContractVersionId': ContractVersionId, 'DocumentType': JsonConverters.toJson(DocumentType,'ContractDocumentType',context!) }); getTypeName() => "ContractFileSimple"; TypeContext? context = _ctx; } class ContractVersionDetails extends ContractVersionSimple implements IConvertible { Map? Meta; DateTime? ViewingDateTime; DateTime? ReviewingDateTime; List? ContractFiles; ContractVersionDetails({this.Meta,this.ViewingDateTime,this.ReviewingDateTime,this.ContractFiles}); ContractVersionDetails.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Meta = JsonConverters.toStringMap(json['Meta']); ViewingDateTime = JsonConverters.fromJson(json['ViewingDateTime'],'DateTime',context!); ReviewingDateTime = JsonConverters.fromJson(json['ReviewingDateTime'],'DateTime',context!); ContractFiles = JsonConverters.fromJson(json['ContractFiles'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Meta': Meta, 'ViewingDateTime': JsonConverters.toJson(ViewingDateTime,'DateTime',context!), 'ReviewingDateTime': JsonConverters.toJson(ReviewingDateTime,'DateTime',context!), 'ContractFiles': JsonConverters.toJson(ContractFiles,'List',context!) }); getTypeName() => "ContractVersionDetails"; TypeContext? context = _ctx; } class BrowseContractVersionResponse extends ResponseBase implements IConvertible { ContractVersionDetails? ContractVersion; BrowseContractVersionResponse({this.ContractVersion}); BrowseContractVersionResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ContractVersion = JsonConverters.fromJson(json['ContractVersion'],'ContractVersionDetails',context!); return this; } Map toJson() => super.toJson()..addAll({ 'ContractVersion': JsonConverters.toJson(ContractVersion,'ContractVersionDetails',context!) }); getTypeName() => "BrowseContractVersionResponse"; TypeContext? context = _ctx; } // @Route("/user/{supplieruserid}/contract/{contractid}/contractversion/{contractversionid}", "GET") class BrowseContractVersion extends ContractVersionBase implements IReturn, IGet, IConvertible { BrowseContractVersion(); BrowseContractVersion.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => BrowseContractVersionResponse(); getResponseTypeName() => "BrowseContractVersionResponse"; getTypeName() => "BrowseContractVersion"; 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), 'ResponseBase': TypeInfo(TypeOf.AbstractClass), 'ReviewStatus': TypeInfo(TypeOf.Enum, enumValues:ReviewStatus.values), 'ContractVersionSimple': TypeInfo(TypeOf.Class, create:() => ContractVersionSimple()), 'BrowseFileResponseBase': TypeInfo(TypeOf.AbstractClass), 'ContractFileSimple': TypeInfo(TypeOf.Class, create:() => ContractFileSimple()), 'ContractVersionDetails': TypeInfo(TypeOf.Class, create:() => ContractVersionDetails()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'BrowseContractVersionResponse': TypeInfo(TypeOf.Class, create:() => BrowseContractVersionResponse()), 'BrowseContractVersion': TypeInfo(TypeOf.Class, create:() => BrowseContractVersion()), });