/* Options: Date: 2026-08-17 10:08:32 Version: 6.10 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://stubbur-app.azurewebsites.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: WebshopCategoryUpdateRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class WebshopCategory implements IConvertible { int? id; int? ownerId; // @StringLength(150) String? name; // @StringLength(150) String? subName; int? viewOrder; int? legacyId; DateTime? createdAt; WebshopCategory({this.id,this.ownerId,this.name,this.subName,this.viewOrder,this.legacyId,this.createdAt}); WebshopCategory.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; ownerId = json['ownerId']; name = json['name']; subName = json['subName']; viewOrder = json['viewOrder']; legacyId = json['legacyId']; createdAt = JsonConverters.fromJson(json['createdAt'],'DateTime',context!); return this; } Map toJson() => { 'id': id, 'ownerId': ownerId, 'name': name, 'subName': subName, 'viewOrder': viewOrder, 'legacyId': legacyId, 'createdAt': JsonConverters.toJson(createdAt,'DateTime',context!) }; getTypeName() => "WebshopCategory"; TypeContext? context = _ctx; } class WebshopCategoryResult implements IConvertible { WebshopCategory? item; int? statusCode; String? message; WebshopCategoryResult({this.item,this.statusCode,this.message}); WebshopCategoryResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { item = JsonConverters.fromJson(json['item'],'WebshopCategory',context!); statusCode = json['statusCode']; message = json['message']; return this; } Map toJson() => { 'item': JsonConverters.toJson(item,'WebshopCategory',context!), 'statusCode': statusCode, 'message': message }; getTypeName() => "WebshopCategoryResult"; TypeContext? context = _ctx; } // @Route("/Webshop/Category", "PUT") class WebshopCategoryUpdateRequest implements IReturn, IConvertible { WebshopCategory? item; int? ownerId; WebshopCategoryUpdateRequest({this.item,this.ownerId}); WebshopCategoryUpdateRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { item = JsonConverters.fromJson(json['item'],'WebshopCategory',context!); ownerId = json['ownerId']; return this; } Map toJson() => { 'item': JsonConverters.toJson(item,'WebshopCategory',context!), 'ownerId': ownerId }; createResponse() => WebshopCategoryResult(); getResponseTypeName() => "WebshopCategoryResult"; getTypeName() => "WebshopCategoryUpdateRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: { 'WebshopCategory': TypeInfo(TypeOf.Class, create:() => WebshopCategory()), 'WebshopCategoryResult': TypeInfo(TypeOf.Class, create:() => WebshopCategoryResult()), 'WebshopCategoryUpdateRequest': TypeInfo(TypeOf.Class, create:() => WebshopCategoryUpdateRequest()), });