/* Options: Date: 2025-01-08 03:17:30 Version: 8.53 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazordiffusion.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AdminUpdateArtifactCommentReport.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ArtifactComment extends AuditBase implements IConvertible { int? id; int? artifactId; int? replyId; String? content; int? upVotes; int? downVotes; int? votes; String? flagReason; String? notes; String? refId; int? appUserId; ArtifactComment({this.id,this.artifactId,this.replyId,this.content,this.upVotes,this.downVotes,this.votes,this.flagReason,this.notes,this.refId,this.appUserId}); ArtifactComment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; artifactId = json['artifactId']; replyId = json['replyId']; content = json['content']; upVotes = json['upVotes']; downVotes = json['downVotes']; votes = json['votes']; flagReason = json['flagReason']; notes = json['notes']; refId = json['refId']; appUserId = json['appUserId']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id, 'artifactId': artifactId, 'replyId': replyId, 'content': content, 'upVotes': upVotes, 'downVotes': downVotes, 'votes': votes, 'flagReason': flagReason, 'notes': notes, 'refId': refId, 'appUserId': appUserId }); getTypeName() => "ArtifactComment"; TypeContext? context = _ctx; } enum PostReport { Offensive, Spam, Nudity, Illegal, Other, } class ArtifactCommentReport implements IConvertible { int? id; // @References(typeof(ArtifactComment)) int? artifactCommentId; int? appUserId; PostReport? postReport; String? description; DateTime? createdDate; ArtifactCommentReport({this.id,this.artifactCommentId,this.appUserId,this.postReport,this.description,this.createdDate}); ArtifactCommentReport.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; artifactCommentId = json['artifactCommentId']; appUserId = json['appUserId']; postReport = JsonConverters.fromJson(json['postReport'],'PostReport',context!); description = json['description']; createdDate = JsonConverters.fromJson(json['createdDate'],'DateTime',context!); return this; } Map toJson() => { 'id': id, 'artifactCommentId': artifactCommentId, 'appUserId': appUserId, 'postReport': JsonConverters.toJson(postReport,'PostReport',context!), 'description': description, 'createdDate': JsonConverters.toJson(createdDate,'DateTime',context!) }; getTypeName() => "ArtifactCommentReport"; TypeContext? context = _ctx; } // @ValidateRequest(Validator="IsAdmin") class AdminUpdateArtifactCommentReport implements IReturn, IPatchDb, IConvertible, IPatch { int? id; PostReport? postReport; String? description; AdminUpdateArtifactCommentReport({this.id,this.postReport,this.description}); AdminUpdateArtifactCommentReport.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; postReport = JsonConverters.fromJson(json['postReport'],'PostReport',context!); description = json['description']; return this; } Map toJson() => { 'id': id, 'postReport': JsonConverters.toJson(postReport,'PostReport',context!), 'description': description }; createResponse() => ArtifactCommentReport(); getResponseTypeName() => "ArtifactCommentReport"; getTypeName() => "AdminUpdateArtifactCommentReport"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'ArtifactComment': TypeInfo(TypeOf.Class, create:() => ArtifactComment()), 'PostReport': TypeInfo(TypeOf.Enum, enumValues:PostReport.values), 'ArtifactCommentReport': TypeInfo(TypeOf.Class, create:() => ArtifactCommentReport()), 'AdminUpdateArtifactCommentReport': TypeInfo(TypeOf.Class, create:() => AdminUpdateArtifactCommentReport()), });