/* Options: Date: 2025-08-04 03:33:55 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: BrowseAllApplicationUserCommodityCode.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; 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 CommodityCodeSimple implements IConvertible { int? Id; String? CategoryCode; String? CategoryName; String? SubCategoryCode; String? SubCategoryName; String? MainCategoryCode; String? MainCategoryName; CommodityCodeSimple({this.Id,this.CategoryCode,this.CategoryName,this.SubCategoryCode,this.SubCategoryName,this.MainCategoryCode,this.MainCategoryName}); CommodityCodeSimple.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; CategoryCode = json['CategoryCode']; CategoryName = json['CategoryName']; SubCategoryCode = json['SubCategoryCode']; SubCategoryName = json['SubCategoryName']; MainCategoryCode = json['MainCategoryCode']; MainCategoryName = json['MainCategoryName']; return this; } Map toJson() => { 'Id': Id, 'CategoryCode': CategoryCode, 'CategoryName': CategoryName, 'SubCategoryCode': SubCategoryCode, 'SubCategoryName': SubCategoryName, 'MainCategoryCode': MainCategoryCode, 'MainCategoryName': MainCategoryName }; getTypeName() => "CommodityCodeSimple"; TypeContext? context = _ctx; } class ApplicationUserCommodityCodeSimple extends CommodityCodeSimple implements IConvertible { int? CommodityCodeId; int? UserCommodityCodeId; ApplicationUserCommodityCodeSimple({this.CommodityCodeId,this.UserCommodityCodeId}); ApplicationUserCommodityCodeSimple.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CommodityCodeId = json['CommodityCodeId']; UserCommodityCodeId = json['UserCommodityCodeId']; return this; } Map toJson() => super.toJson()..addAll({ 'CommodityCodeId': CommodityCodeId, 'UserCommodityCodeId': UserCommodityCodeId }); getTypeName() => "ApplicationUserCommodityCodeSimple"; TypeContext? context = _ctx; } class BrowseAllApplicationUserCommodityCodeResponse extends ResponseBase implements IConvertible { List? CommodityCodes; BrowseAllApplicationUserCommodityCodeResponse({this.CommodityCodes}); BrowseAllApplicationUserCommodityCodeResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CommodityCodes = JsonConverters.fromJson(json['CommodityCodes'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'CommodityCodes': JsonConverters.toJson(CommodityCodes,'List',context!) }); getTypeName() => "BrowseAllApplicationUserCommodityCodeResponse"; TypeContext? context = _ctx; } // @Route("/user/{userid}/commoditycode", "GET") class BrowseAllApplicationUserCommodityCode implements IReturn, IGet, IConvertible { int? UserId; BrowseAllApplicationUserCommodityCode({this.UserId}); BrowseAllApplicationUserCommodityCode.fromJson(Map json) { fromMap(json); } fromMap(Map json) { UserId = json['UserId']; return this; } Map toJson() => { 'UserId': UserId }; createResponse() => BrowseAllApplicationUserCommodityCodeResponse(); getResponseTypeName() => "BrowseAllApplicationUserCommodityCodeResponse"; getTypeName() => "BrowseAllApplicationUserCommodityCode"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'szallitoiportal_be.veolia.hu', types: { 'ResponseBase': TypeInfo(TypeOf.AbstractClass), 'CommodityCodeSimple': TypeInfo(TypeOf.Class, create:() => CommodityCodeSimple()), 'ApplicationUserCommodityCodeSimple': TypeInfo(TypeOf.Class, create:() => ApplicationUserCommodityCodeSimple()), 'BrowseAllApplicationUserCommodityCodeResponse': TypeInfo(TypeOf.Class, create:() => BrowseAllApplicationUserCommodityCodeResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'BrowseAllApplicationUserCommodityCode': TypeInfo(TypeOf.Class, create:() => BrowseAllApplicationUserCommodityCode()), });