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