/* Options: Date: 2025-01-08 03:10:04 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: QueryArtifactComments.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class CommentResult implements IConvertible { int? id; int? artifactId; int? replyId; String? content; int? upVotes; int? downVotes; int? votes; String? flagReason; String? notes; int? appUserId; String? displayName; String? handle; String? profileUrl; String? avatar; DateTime? createdDate; DateTime? modifiedDate; CommentResult({this.id,this.artifactId,this.replyId,this.content,this.upVotes,this.downVotes,this.votes,this.flagReason,this.notes,this.appUserId,this.displayName,this.handle,this.profileUrl,this.avatar,this.createdDate,this.modifiedDate}); CommentResult.fromJson(Map json) { fromMap(json); } fromMap(Map 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']; appUserId = json['appUserId']; displayName = json['displayName']; handle = json['handle']; profileUrl = json['profileUrl']; avatar = json['avatar']; createdDate = JsonConverters.fromJson(json['createdDate'],'DateTime',context!); modifiedDate = JsonConverters.fromJson(json['modifiedDate'],'DateTime',context!); return this; } Map toJson() => { 'id': id, 'artifactId': artifactId, 'replyId': replyId, 'content': content, 'upVotes': upVotes, 'downVotes': downVotes, 'votes': votes, 'flagReason': flagReason, 'notes': notes, 'appUserId': appUserId, 'displayName': displayName, 'handle': handle, 'profileUrl': profileUrl, 'avatar': avatar, 'createdDate': JsonConverters.toJson(createdDate,'DateTime',context!), 'modifiedDate': JsonConverters.toJson(modifiedDate,'DateTime',context!) }; getTypeName() => "CommentResult"; TypeContext? context = _ctx; } 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; } class QueryArtifactComments extends QueryDb2 implements IReturn>, IConvertible, IGet { int? artifactId; QueryArtifactComments({this.artifactId}); QueryArtifactComments.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); artifactId = json['artifactId']; return this; } Map toJson() => super.toJson()..addAll({ 'artifactId': artifactId }); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "QueryArtifactComments"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'CommentResult': TypeInfo(TypeOf.Class, create:() => CommentResult()), 'ArtifactComment': TypeInfo(TypeOf.Class, create:() => ArtifactComment()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'QueryArtifactComments': TypeInfo(TypeOf.Class, create:() => QueryArtifactComments()), 'List': TypeInfo(TypeOf.Class, create:() => []), });