/* Options: Date: 2025-04-27 05:15:19 Version: 8.71 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazordiffusion.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: QueryArtifactStats.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class StatBase implements IConvertible { String? refId; int? appUserId; String? rawUrl; String? remoteIp; DateTime? createdDate; StatBase({this.refId,this.appUserId,this.rawUrl,this.remoteIp,this.createdDate}); StatBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { refId = json['refId']; appUserId = json['appUserId']; rawUrl = json['rawUrl']; remoteIp = json['remoteIp']; createdDate = JsonConverters.fromJson(json['createdDate'],'DateTime',context!); return this; } Map toJson() => { 'refId': refId, 'appUserId': appUserId, 'rawUrl': rawUrl, 'remoteIp': remoteIp, 'createdDate': JsonConverters.toJson(createdDate,'DateTime',context!) }; getTypeName() => "StatBase"; TypeContext? context = _ctx; } enum StatType { Download, } class ArtifactStat extends StatBase implements IConvertible { int? id; StatType? type; int? artifactId; String? source; String? version; ArtifactStat({this.id,this.type,this.artifactId,this.source,this.version}); ArtifactStat.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; type = JsonConverters.fromJson(json['type'],'StatType',context!); artifactId = json['artifactId']; source = json['source']; version = json['version']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id, 'type': JsonConverters.toJson(type,'StatType',context!), 'artifactId': artifactId, 'source': source, 'version': version }); getTypeName() => "ArtifactStat"; TypeContext? context = _ctx; } // @ValidateRequest(Validator="HasRole(`Moderator`)") class QueryArtifactStats extends QueryDb implements IReturn>, IConvertible, IGet { QueryArtifactStats(); QueryArtifactStats.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "QueryArtifactStats"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'StatBase': TypeInfo(TypeOf.Class, create:() => StatBase()), 'StatType': TypeInfo(TypeOf.Enum, enumValues:StatType.values), 'ArtifactStat': TypeInfo(TypeOf.Class, create:() => ArtifactStat()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'QueryArtifactStats': TypeInfo(TypeOf.Class, create:() => QueryArtifactStats()), 'List': TypeInfo(TypeOf.Class, create:() => []), });