/* Options: Date: 2025-01-08 03:07:47 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: CreateArtifactCommentReport.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; 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="IsAuthenticated") class CreateArtifactCommentReport implements IReturnVoid, ICreateDb, IConvertible, IPost { int? artifactCommentId; PostReport? postReport; String? description; CreateArtifactCommentReport({this.artifactCommentId,this.postReport,this.description}); CreateArtifactCommentReport.fromJson(Map json) { fromMap(json); } fromMap(Map json) { artifactCommentId = json['artifactCommentId']; postReport = JsonConverters.fromJson(json['postReport'],'PostReport',context!); description = json['description']; return this; } Map toJson() => { 'artifactCommentId': artifactCommentId, 'postReport': JsonConverters.toJson(postReport,'PostReport',context!), 'description': description }; createResponse() {} getTypeName() => "CreateArtifactCommentReport"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'PostReport': TypeInfo(TypeOf.Enum, enumValues:PostReport.values), 'ArtifactCommentReport': TypeInfo(TypeOf.Class, create:() => ArtifactCommentReport()), 'CreateArtifactCommentReport': TypeInfo(TypeOf.Class, create:() => CreateArtifactCommentReport()), });