/* Options: Date: 2025-01-08 03:21:08 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: DeleteArtifactCommentVote.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ArtifactCommentVote implements IConvertible { int? id; // @References(typeof(ArtifactComment)) int? artifactCommentId; int? appUserId; int? vote; DateTime? createdDate; ArtifactCommentVote({this.id,this.artifactCommentId,this.appUserId,this.vote,this.createdDate}); ArtifactCommentVote.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; artifactCommentId = json['artifactCommentId']; appUserId = json['appUserId']; vote = json['vote']; createdDate = JsonConverters.fromJson(json['createdDate'],'DateTime',context!); return this; } Map toJson() => { 'id': id, 'artifactCommentId': artifactCommentId, 'appUserId': appUserId, 'vote': vote, 'createdDate': JsonConverters.toJson(createdDate,'DateTime',context!) }; getTypeName() => "ArtifactCommentVote"; TypeContext? context = _ctx; } // @ValidateRequest(Validator="IsAuthenticated") class DeleteArtifactCommentVote implements IReturnVoid, IDeleteDb, IConvertible, IDelete { int? artifactCommentId; DeleteArtifactCommentVote({this.artifactCommentId}); DeleteArtifactCommentVote.fromJson(Map json) { fromMap(json); } fromMap(Map json) { artifactCommentId = json['artifactCommentId']; return this; } Map toJson() => { 'artifactCommentId': artifactCommentId }; createResponse() {} getTypeName() => "DeleteArtifactCommentVote"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'ArtifactCommentVote': TypeInfo(TypeOf.Class, create:() => ArtifactCommentVote()), 'DeleteArtifactCommentVote': TypeInfo(TypeOf.Class, create:() => DeleteArtifactCommentVote()), });