/* Options: Date: 2024-12-22 13:04:42 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: UpdateOrganization.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class UpdateOrganizationResponse implements IConvertible { ResponseStatus? responseStatus; UpdateOrganizationResponse({this.responseStatus}); UpdateOrganizationResponse.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() => "UpdateOrganizationResponse"; TypeContext? context = _ctx; } // @Route("/orgs/{Id}", "PUT") class UpdateOrganization implements IReturn, IPut, IConvertible { int? id; String? slug; String? name; String? description; String? color; String? textColor; String? linkColor; String? backgroundColor; String? backgroundUrl; String? logoUrl; String? heroUrl; String? lang; int? deletePostsWithReportCount; bool? disableInvites; String? defaultPostType; List? defaultSubscriptionPostTypes; List? postTypes; List? moderatorPostTypes; List? technologyIds; UpdateOrganization({this.id,this.slug,this.name,this.description,this.color,this.textColor,this.linkColor,this.backgroundColor,this.backgroundUrl,this.logoUrl,this.heroUrl,this.lang,this.deletePostsWithReportCount,this.disableInvites,this.defaultPostType,this.defaultSubscriptionPostTypes,this.postTypes,this.moderatorPostTypes,this.technologyIds}); UpdateOrganization.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; slug = json['slug']; name = json['name']; description = json['description']; color = json['color']; textColor = json['textColor']; linkColor = json['linkColor']; backgroundColor = json['backgroundColor']; backgroundUrl = json['backgroundUrl']; logoUrl = json['logoUrl']; heroUrl = json['heroUrl']; lang = json['lang']; deletePostsWithReportCount = json['deletePostsWithReportCount']; disableInvites = json['disableInvites']; defaultPostType = json['defaultPostType']; defaultSubscriptionPostTypes = JsonConverters.fromJson(json['defaultSubscriptionPostTypes'],'List',context!); postTypes = JsonConverters.fromJson(json['postTypes'],'List',context!); moderatorPostTypes = JsonConverters.fromJson(json['moderatorPostTypes'],'List',context!); technologyIds = JsonConverters.fromJson(json['technologyIds'],'List',context!); return this; } Map toJson() => { 'id': id, 'slug': slug, 'name': name, 'description': description, 'color': color, 'textColor': textColor, 'linkColor': linkColor, 'backgroundColor': backgroundColor, 'backgroundUrl': backgroundUrl, 'logoUrl': logoUrl, 'heroUrl': heroUrl, 'lang': lang, 'deletePostsWithReportCount': deletePostsWithReportCount, 'disableInvites': disableInvites, 'defaultPostType': defaultPostType, 'defaultSubscriptionPostTypes': JsonConverters.toJson(defaultSubscriptionPostTypes,'List',context!), 'postTypes': JsonConverters.toJson(postTypes,'List',context!), 'moderatorPostTypes': JsonConverters.toJson(moderatorPostTypes,'List',context!), 'technologyIds': JsonConverters.toJson(technologyIds,'List',context!) }; createResponse() => UpdateOrganizationResponse(); getResponseTypeName() => "UpdateOrganizationResponse"; getTypeName() => "UpdateOrganization"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'techstacks.io', types: { 'UpdateOrganizationResponse': TypeInfo(TypeOf.Class, create:() => UpdateOrganizationResponse()), 'UpdateOrganization': TypeInfo(TypeOf.Class, create:() => UpdateOrganization()), });