/* Options: Date: 2025-01-08 03:20:20 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: AdminDeleteArtifactCommentReport.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; 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 AdminDeleteArtifactCommentReport implements IReturnVoid, IDeleteDb, IConvertible, IDelete { int? id; AdminDeleteArtifactCommentReport({this.id}); AdminDeleteArtifactCommentReport.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; return this; } Map toJson() => { 'id': id }; createResponse() {} getTypeName() => "AdminDeleteArtifactCommentReport"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'ArtifactCommentReport': TypeInfo(TypeOf.Class, create:() => ArtifactCommentReport()), 'PostReport': TypeInfo(TypeOf.Class, create:() => PostReport()), 'AdminDeleteArtifactCommentReport': TypeInfo(TypeOf.Class, create:() => AdminDeleteArtifactCommentReport()), });