/* Options: Date: 2025-01-08 03:22:12 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: QuerySearchStats.* //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; } class SearchStat extends StatBase implements IConvertible { int? id; String? query; String? similar; String? user; String? modifier; String? artist; String? album; String? Show; String? source; int? artifactId; int? albumId; int? modifierId; int? artistId; SearchStat({this.id,this.query,this.similar,this.user,this.modifier,this.artist,this.album,this.Show,this.source,this.artifactId,this.albumId,this.modifierId,this.artistId}); SearchStat.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; query = json['query']; similar = json['similar']; user = json['user']; modifier = json['modifier']; artist = json['artist']; album = json['album']; Show = json['show']; source = json['source']; artifactId = json['artifactId']; albumId = json['albumId']; modifierId = json['modifierId']; artistId = json['artistId']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id, 'query': query, 'similar': similar, 'user': user, 'modifier': modifier, 'artist': artist, 'album': album, 'show': Show, 'source': source, 'artifactId': artifactId, 'albumId': albumId, 'modifierId': modifierId, 'artistId': artistId }); getTypeName() => "SearchStat"; TypeContext? context = _ctx; } // @ValidateRequest(Validator="HasRole(`Moderator`)") class QuerySearchStats extends QueryDb implements IReturn>, IConvertible, IGet { QuerySearchStats(); QuerySearchStats.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "QuerySearchStats"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'StatBase': TypeInfo(TypeOf.Class, create:() => StatBase()), 'SearchStat': TypeInfo(TypeOf.Class, create:() => SearchStat()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'QuerySearchStats': TypeInfo(TypeOf.Class, create:() => QuerySearchStats()), 'List': TypeInfo(TypeOf.Class, create:() => []), });