/* Options: Date: 2024-04-29 01:22:58 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: GetOrganizationAdmin.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum FlagType { Violation, Spam, Abusive, Confidential, OffTopic, Other, } class OrganizationLabel implements IConvertible { String? slug; int? organizationId; String? description; String? color; OrganizationLabel({this.slug,this.organizationId,this.description,this.color}); OrganizationLabel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { slug = json['slug']; organizationId = json['organizationId']; description = json['description']; color = json['color']; return this; } Map toJson() => { 'slug': slug, 'organizationId': organizationId, 'description': description, 'color': color }; getTypeName() => "OrganizationLabel"; TypeContext? context = _ctx; } class OrganizationMember implements IConvertible { int? id; int? organizationId; int? userId; String? userName; bool? isOwner; bool? isModerator; bool? denyAll; bool? denyPosts; bool? denyComments; String? notes; OrganizationMember({this.id,this.organizationId,this.userId,this.userName,this.isOwner,this.isModerator,this.denyAll,this.denyPosts,this.denyComments,this.notes}); OrganizationMember.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; organizationId = json['organizationId']; userId = json['userId']; userName = json['userName']; isOwner = json['isOwner']; isModerator = json['isModerator']; denyAll = json['denyAll']; denyPosts = json['denyPosts']; denyComments = json['denyComments']; notes = json['notes']; return this; } Map toJson() => { 'id': id, 'organizationId': organizationId, 'userId': userId, 'userName': userName, 'isOwner': isOwner, 'isModerator': isModerator, 'denyAll': denyAll, 'denyPosts': denyPosts, 'denyComments': denyComments, 'notes': notes }; getTypeName() => "OrganizationMember"; TypeContext? context = _ctx; } class OrganizationMemberInvite implements IConvertible { int? id; int? organizationId; int? userId; String? userName; DateTime? dismissed; OrganizationMemberInvite({this.id,this.organizationId,this.userId,this.userName,this.dismissed}); OrganizationMemberInvite.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; organizationId = json['organizationId']; userId = json['userId']; userName = json['userName']; dismissed = JsonConverters.fromJson(json['dismissed'],'DateTime',context!); return this; } Map toJson() => { 'id': id, 'organizationId': organizationId, 'userId': userId, 'userName': userName, 'dismissed': JsonConverters.toJson(dismissed,'DateTime',context!) }; getTypeName() => "OrganizationMemberInvite"; TypeContext? context = _ctx; } class PostReportInfo implements IConvertible { int? id; int? organizationId; int? postId; int? userId; String? userName; FlagType? flagType; String? reportNotes; DateTime? created; DateTime? acknowledged; String? acknowledgedBy; DateTime? dismissed; String? dismissedBy; String? title; int? reportCount; String? createdBy; PostReportInfo({this.id,this.organizationId,this.postId,this.userId,this.userName,this.flagType,this.reportNotes,this.created,this.acknowledged,this.acknowledgedBy,this.dismissed,this.dismissedBy,this.title,this.reportCount,this.createdBy}); PostReportInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; organizationId = json['organizationId']; postId = json['postId']; userId = json['userId']; userName = json['userName']; flagType = JsonConverters.fromJson(json['flagType'],'FlagType',context!); reportNotes = json['reportNotes']; created = JsonConverters.fromJson(json['created'],'DateTime',context!); acknowledged = JsonConverters.fromJson(json['acknowledged'],'DateTime',context!); acknowledgedBy = json['acknowledgedBy']; dismissed = JsonConverters.fromJson(json['dismissed'],'DateTime',context!); dismissedBy = json['dismissedBy']; title = json['title']; reportCount = json['reportCount']; createdBy = json['createdBy']; return this; } Map toJson() => { 'id': id, 'organizationId': organizationId, 'postId': postId, 'userId': userId, 'userName': userName, 'flagType': JsonConverters.toJson(flagType,'FlagType',context!), 'reportNotes': reportNotes, 'created': JsonConverters.toJson(created,'DateTime',context!), 'acknowledged': JsonConverters.toJson(acknowledged,'DateTime',context!), 'acknowledgedBy': acknowledgedBy, 'dismissed': JsonConverters.toJson(dismissed,'DateTime',context!), 'dismissedBy': dismissedBy, 'title': title, 'reportCount': reportCount, 'createdBy': createdBy }; getTypeName() => "PostReportInfo"; TypeContext? context = _ctx; } class PostCommentReportInfo implements IConvertible { int? id; int? organizationId; int? postId; int? postCommentId; int? userId; String? userName; FlagType? flagType; String? reportNotes; DateTime? created; DateTime? acknowledged; String? acknowledgedBy; DateTime? dismissed; String? dismissedBy; String? contentHtml; int? reportCount; String? createdBy; PostCommentReportInfo({this.id,this.organizationId,this.postId,this.postCommentId,this.userId,this.userName,this.flagType,this.reportNotes,this.created,this.acknowledged,this.acknowledgedBy,this.dismissed,this.dismissedBy,this.contentHtml,this.reportCount,this.createdBy}); PostCommentReportInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; organizationId = json['organizationId']; postId = json['postId']; postCommentId = json['postCommentId']; userId = json['userId']; userName = json['userName']; flagType = JsonConverters.fromJson(json['flagType'],'FlagType',context!); reportNotes = json['reportNotes']; created = JsonConverters.fromJson(json['created'],'DateTime',context!); acknowledged = JsonConverters.fromJson(json['acknowledged'],'DateTime',context!); acknowledgedBy = json['acknowledgedBy']; dismissed = JsonConverters.fromJson(json['dismissed'],'DateTime',context!); dismissedBy = json['dismissedBy']; contentHtml = json['contentHtml']; reportCount = json['reportCount']; createdBy = json['createdBy']; return this; } Map toJson() => { 'id': id, 'organizationId': organizationId, 'postId': postId, 'postCommentId': postCommentId, 'userId': userId, 'userName': userName, 'flagType': JsonConverters.toJson(flagType,'FlagType',context!), 'reportNotes': reportNotes, 'created': JsonConverters.toJson(created,'DateTime',context!), 'acknowledged': JsonConverters.toJson(acknowledged,'DateTime',context!), 'acknowledgedBy': acknowledgedBy, 'dismissed': JsonConverters.toJson(dismissed,'DateTime',context!), 'dismissedBy': dismissedBy, 'contentHtml': contentHtml, 'reportCount': reportCount, 'createdBy': createdBy }; getTypeName() => "PostCommentReportInfo"; TypeContext? context = _ctx; } class GetOrganizationAdminResponse implements IConvertible { List? labels; List? members; List? memberInvites; List? reportedPosts; List? reportedPostComments; ResponseStatus? responseStatus; GetOrganizationAdminResponse({this.labels,this.members,this.memberInvites,this.reportedPosts,this.reportedPostComments,this.responseStatus}); GetOrganizationAdminResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { labels = JsonConverters.fromJson(json['labels'],'List',context!); members = JsonConverters.fromJson(json['members'],'List',context!); memberInvites = JsonConverters.fromJson(json['memberInvites'],'List',context!); reportedPosts = JsonConverters.fromJson(json['reportedPosts'],'List',context!); reportedPostComments = JsonConverters.fromJson(json['reportedPostComments'],'List',context!); responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'labels': JsonConverters.toJson(labels,'List',context!), 'members': JsonConverters.toJson(members,'List',context!), 'memberInvites': JsonConverters.toJson(memberInvites,'List',context!), 'reportedPosts': JsonConverters.toJson(reportedPosts,'List',context!), 'reportedPostComments': JsonConverters.toJson(reportedPostComments,'List',context!), 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "GetOrganizationAdminResponse"; TypeContext? context = _ctx; } // @Route("/orgs/{Id}/admin", "GET") class GetOrganizationAdmin implements IReturn, IGet, IConvertible { int? id; GetOrganizationAdmin({this.id}); GetOrganizationAdmin.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; return this; } Map toJson() => { 'id': id }; createResponse() => GetOrganizationAdminResponse(); getResponseTypeName() => "GetOrganizationAdminResponse"; getTypeName() => "GetOrganizationAdmin"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'techstacks.io', types: { 'FlagType': TypeInfo(TypeOf.Enum, enumValues:FlagType.values), 'OrganizationLabel': TypeInfo(TypeOf.Class, create:() => OrganizationLabel()), 'OrganizationMember': TypeInfo(TypeOf.Class, create:() => OrganizationMember()), 'OrganizationMemberInvite': TypeInfo(TypeOf.Class, create:() => OrganizationMemberInvite()), 'PostReportInfo': TypeInfo(TypeOf.Class, create:() => PostReportInfo()), 'PostCommentReportInfo': TypeInfo(TypeOf.Class, create:() => PostCommentReportInfo()), 'GetOrganizationAdminResponse': TypeInfo(TypeOf.Class, create:() => GetOrganizationAdminResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetOrganizationAdmin': TypeInfo(TypeOf.Class, create:() => GetOrganizationAdmin()), });