/* Options: Date: 2024-12-22 12:49:17 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: CreateOrganizationForTechnology.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class CreateOrganizationForTechnologyResponse implements IConvertible { int? organizationId; String? organizationSlug; int? commentsPostId; String? commentsPostSlug; ResponseStatus? responseStatus; CreateOrganizationForTechnologyResponse({this.organizationId,this.organizationSlug,this.commentsPostId,this.commentsPostSlug,this.responseStatus}); CreateOrganizationForTechnologyResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { organizationId = json['organizationId']; organizationSlug = json['organizationSlug']; commentsPostId = json['commentsPostId']; commentsPostSlug = json['commentsPostSlug']; responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'organizationId': organizationId, 'organizationSlug': organizationSlug, 'commentsPostId': commentsPostId, 'commentsPostSlug': commentsPostSlug, 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "CreateOrganizationForTechnologyResponse"; TypeContext? context = _ctx; } // @Route("/orgs/posts/new", "POST") class CreateOrganizationForTechnology implements IReturn, IPost, IConvertible { int? technologyId; int? techStackId; CreateOrganizationForTechnology({this.technologyId,this.techStackId}); CreateOrganizationForTechnology.fromJson(Map json) { fromMap(json); } fromMap(Map json) { technologyId = json['technologyId']; techStackId = json['techStackId']; return this; } Map toJson() => { 'technologyId': technologyId, 'techStackId': techStackId }; createResponse() => CreateOrganizationForTechnologyResponse(); getResponseTypeName() => "CreateOrganizationForTechnologyResponse"; getTypeName() => "CreateOrganizationForTechnology"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'techstacks.io', types: { 'CreateOrganizationForTechnologyResponse': TypeInfo(TypeOf.Class, create:() => CreateOrganizationForTechnologyResponse()), 'CreateOrganizationForTechnology': TypeInfo(TypeOf.Class, create:() => CreateOrganizationForTechnology()), });