/* Options: Date: 2024-04-29 14:52:15 Version: 8.13 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://techstacks.io //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AddOrganizationCategory.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class AddOrganizationCategoryResponse implements IConvertible { int? id; String? slug; ResponseStatus? responseStatus; AddOrganizationCategoryResponse({this.id,this.slug,this.responseStatus}); AddOrganizationCategoryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; slug = json['slug']; responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'id': id, 'slug': slug, 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "AddOrganizationCategoryResponse"; TypeContext? context = _ctx; } // @Route("/orgs/{OrganizationId}/categories", "POST") class AddOrganizationCategory implements IReturn, IPost, IConvertible { int? organizationId; String? slug; String? name; String? description; List? technologyIds; AddOrganizationCategory({this.organizationId,this.slug,this.name,this.description,this.technologyIds}); AddOrganizationCategory.fromJson(Map json) { fromMap(json); } fromMap(Map json) { organizationId = json['organizationId']; slug = json['slug']; name = json['name']; description = json['description']; technologyIds = JsonConverters.fromJson(json['technologyIds'],'List',context!); return this; } Map toJson() => { 'organizationId': organizationId, 'slug': slug, 'name': name, 'description': description, 'technologyIds': JsonConverters.toJson(technologyIds,'List',context!) }; createResponse() => AddOrganizationCategoryResponse(); getResponseTypeName() => "AddOrganizationCategoryResponse"; getTypeName() => "AddOrganizationCategory"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'techstacks.io', types: { 'AddOrganizationCategoryResponse': TypeInfo(TypeOf.Class, create:() => AddOrganizationCategoryResponse()), 'AddOrganizationCategory': TypeInfo(TypeOf.Class, create:() => AddOrganizationCategory()), });