/* Options: Date: 2025-04-03 08:54:47 Version: 8.61 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazordiffusion.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetAnalyticsReports.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; // @DataContract class RequestSummary implements IConvertible { // @DataMember(Order=1) String? name; // @DataMember(Order=2) int? totalRequests; // @DataMember(Order=3) int? totalRequestLength; // @DataMember(Order=4) int? minRequestLength; // @DataMember(Order=5) int? maxRequestLength; // @DataMember(Order=6) double? totalDuration; // @DataMember(Order=7) double? minDuration; // @DataMember(Order=8) double? maxDuration; // @DataMember(Order=9) Map? status; // @DataMember(Order=10) Map? durations; // @DataMember(Order=11) Map? apis; // @DataMember(Order=12) Map? users; // @DataMember(Order=13) Map? ips; // @DataMember(Order=14) Map? apiKeys; RequestSummary({this.name,this.totalRequests,this.totalRequestLength,this.minRequestLength,this.maxRequestLength,this.totalDuration,this.minDuration,this.maxDuration,this.status,this.durations,this.apis,this.users,this.ips,this.apiKeys}); RequestSummary.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; totalRequests = json['totalRequests']; totalRequestLength = json['totalRequestLength']; minRequestLength = json['minRequestLength']; maxRequestLength = json['maxRequestLength']; totalDuration = JsonConverters.toDouble(json['totalDuration']); minDuration = JsonConverters.toDouble(json['minDuration']); maxDuration = JsonConverters.toDouble(json['maxDuration']); status = JsonConverters.fromJson(json['status'],'Map',context!); durations = JsonConverters.fromJson(json['durations'],'Map',context!); apis = JsonConverters.fromJson(json['apis'],'Map',context!); users = JsonConverters.fromJson(json['users'],'Map',context!); ips = JsonConverters.fromJson(json['ips'],'Map',context!); apiKeys = JsonConverters.fromJson(json['apiKeys'],'Map',context!); return this; } Map toJson() => { 'name': name, 'totalRequests': totalRequests, 'totalRequestLength': totalRequestLength, 'minRequestLength': minRequestLength, 'maxRequestLength': maxRequestLength, 'totalDuration': totalDuration, 'minDuration': minDuration, 'maxDuration': maxDuration, 'status': JsonConverters.toJson(status,'Map',context!), 'durations': JsonConverters.toJson(durations,'Map',context!), 'apis': JsonConverters.toJson(apis,'Map',context!), 'users': JsonConverters.toJson(users,'Map',context!), 'ips': JsonConverters.toJson(ips,'Map',context!), 'apiKeys': JsonConverters.toJson(apiKeys,'Map',context!) }; getTypeName() => "RequestSummary"; TypeContext? context = _ctx; } // @DataContract class AnalyticsReports implements IConvertible { // @DataMember(Order=1) int? id; // @DataMember(Order=2) DateTime? created; // @DataMember(Order=3) double? version; // @DataMember(Order=4) Map? apis; // @DataMember(Order=5) Map? users; // @DataMember(Order=6) Map? tags; // @DataMember(Order=7) Map? status; // @DataMember(Order=8) Map? days; // @DataMember(Order=9) Map? apiKeys; // @DataMember(Order=10) Map? ips; // @DataMember(Order=11) Map? browsers; // @DataMember(Order=12) Map? devices; // @DataMember(Order=13) Map? bots; // @DataMember(Order=14) Map? durations; AnalyticsReports({this.id,this.created,this.version,this.apis,this.users,this.tags,this.status,this.days,this.apiKeys,this.ips,this.browsers,this.devices,this.bots,this.durations}); AnalyticsReports.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; created = JsonConverters.fromJson(json['created'],'DateTime',context!); version = JsonConverters.toDouble(json['version']); apis = JsonConverters.fromJson(json['apis'],'Map',context!); users = JsonConverters.fromJson(json['users'],'Map',context!); tags = JsonConverters.fromJson(json['tags'],'Map',context!); status = JsonConverters.fromJson(json['status'],'Map',context!); days = JsonConverters.fromJson(json['days'],'Map',context!); apiKeys = JsonConverters.fromJson(json['apiKeys'],'Map',context!); ips = JsonConverters.fromJson(json['ips'],'Map',context!); browsers = JsonConverters.fromJson(json['browsers'],'Map',context!); devices = JsonConverters.fromJson(json['devices'],'Map',context!); bots = JsonConverters.fromJson(json['bots'],'Map',context!); durations = JsonConverters.fromJson(json['durations'],'Map',context!); return this; } Map toJson() => { 'id': id, 'created': JsonConverters.toJson(created,'DateTime',context!), 'version': version, 'apis': JsonConverters.toJson(apis,'Map',context!), 'users': JsonConverters.toJson(users,'Map',context!), 'tags': JsonConverters.toJson(tags,'Map',context!), 'status': JsonConverters.toJson(status,'Map',context!), 'days': JsonConverters.toJson(days,'Map',context!), 'apiKeys': JsonConverters.toJson(apiKeys,'Map',context!), 'ips': JsonConverters.toJson(ips,'Map',context!), 'browsers': JsonConverters.toJson(browsers,'Map',context!), 'devices': JsonConverters.toJson(devices,'Map',context!), 'bots': JsonConverters.toJson(bots,'Map',context!), 'durations': JsonConverters.toJson(durations,'Map',context!) }; getTypeName() => "AnalyticsReports"; TypeContext? context = _ctx; } // @DataContract class GetAnalyticsReportsResponse implements IConvertible { // @DataMember(Order=1) AnalyticsReports? result; // @DataMember(Order=2) ResponseStatus? responseStatus; GetAnalyticsReportsResponse({this.result,this.responseStatus}); GetAnalyticsReportsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { result = JsonConverters.fromJson(json['result'],'AnalyticsReports',context!); responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'result': JsonConverters.toJson(result,'AnalyticsReports',context!), 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "GetAnalyticsReportsResponse"; TypeContext? context = _ctx; } // @DataContract class GetAnalyticsReports implements IReturn, IGet, IConvertible { // @DataMember(Order=1) DateTime? month; // @DataMember(Order=2) String? filter; // @DataMember(Order=3) String? value; // @DataMember(Order=4) bool? force; GetAnalyticsReports({this.month,this.filter,this.value,this.force}); GetAnalyticsReports.fromJson(Map json) { fromMap(json); } fromMap(Map json) { month = JsonConverters.fromJson(json['month'],'DateTime',context!); filter = json['filter']; value = json['value']; force = json['force']; return this; } Map toJson() => { 'month': JsonConverters.toJson(month,'DateTime',context!), 'filter': filter, 'value': value, 'force': force }; createResponse() => GetAnalyticsReportsResponse(); getResponseTypeName() => "GetAnalyticsReportsResponse"; getTypeName() => "GetAnalyticsReports"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'RequestSummary': TypeInfo(TypeOf.Class, create:() => RequestSummary()), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), 'AnalyticsReports': TypeInfo(TypeOf.Class, create:() => AnalyticsReports()), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), 'GetAnalyticsReportsResponse': TypeInfo(TypeOf.Class, create:() => GetAnalyticsReportsResponse()), 'GetAnalyticsReports': TypeInfo(TypeOf.Class, create:() => GetAnalyticsReports()), });