/* Options: Date: 2025-01-08 03:21:02 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: CreateArtifactCommentVote.* //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 CreateArtifactCommentVote implements IReturnVoid, ICreateDb, IConvertible, IPost { int? artifactCommentId; // @Validate(Validator="InclusiveBetween(-1,1)") int? vote; CreateArtifactCommentVote({this.artifactCommentId,this.vote}); CreateArtifactCommentVote.fromJson(Map json) { fromMap(json); } fromMap(Map json) { artifactCommentId = json['artifactCommentId']; vote = json['vote']; return this; } Map toJson() => { 'artifactCommentId': artifactCommentId, 'vote': vote }; createResponse() {} getTypeName() => "CreateArtifactCommentVote"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'ArtifactCommentVote': TypeInfo(TypeOf.Class, create:() => ArtifactCommentVote()), 'CreateArtifactCommentVote': TypeInfo(TypeOf.Class, create:() => CreateArtifactCommentVote()), });