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