/* Options: Date: 2024-12-22 12:14:26 Version: 8.51 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://techstacks.io //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AddOrganizationLabel.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class OrganizationLabelResponse implements IConvertible { ResponseStatus? responseStatus; OrganizationLabelResponse({this.responseStatus}); OrganizationLabelResponse.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() => "OrganizationLabelResponse"; TypeContext? context = _ctx; } // @Route("/orgs/{OrganizationId}/labels", "POST") class AddOrganizationLabel implements IReturn, IPost, IConvertible { int? organizationId; String? slug; String? description; String? color; AddOrganizationLabel({this.organizationId,this.slug,this.description,this.color}); AddOrganizationLabel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { organizationId = json['organizationId']; slug = json['slug']; description = json['description']; color = json['color']; return this; } Map toJson() => { 'organizationId': organizationId, 'slug': slug, 'description': description, 'color': color }; createResponse() => OrganizationLabelResponse(); getResponseTypeName() => "OrganizationLabelResponse"; getTypeName() => "AddOrganizationLabel"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'techstacks.io', types: { 'OrganizationLabelResponse': TypeInfo(TypeOf.Class, create:() => OrganizationLabelResponse()), 'AddOrganizationLabel': TypeInfo(TypeOf.Class, create:() => AddOrganizationLabel()), });