/* Options: Date: 2025-08-05 02:26:41 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://www.asg.com.au/RestApi //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetCustomMetricValuesMessage.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; // @DataContract class DimensionItem implements IConvertible { // @DataMember String? Value; // @DataMember String? Name; DimensionItem({this.Value,this.Name}); DimensionItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Value = json['Value']; Name = json['Name']; return this; } Map toJson() => { 'Value': Value, 'Name': Name }; getTypeName() => "DimensionItem"; TypeContext? context = _ctx; } // @DataContract class MetricItem implements IConvertible { // @DataMember double? Value; MetricItem({this.Value}); MetricItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Value = JsonConverters.toDouble(json['Value']); return this; } Map toJson() => { 'Value': Value }; getTypeName() => "MetricItem"; TypeContext? context = _ctx; } // @DataContract class AnalyticsItem implements IConvertible { // @DataMember List? Dimensions; // @DataMember List? Metrics; // @DataMember double? TotalItems; AnalyticsItem({this.Dimensions,this.Metrics,this.TotalItems}); AnalyticsItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Dimensions = JsonConverters.fromJson(json['Dimensions'],'List',context!); Metrics = JsonConverters.fromJson(json['Metrics'],'List',context!); TotalItems = JsonConverters.toDouble(json['TotalItems']); return this; } Map toJson() => { 'Dimensions': JsonConverters.toJson(Dimensions,'List',context!), 'Metrics': JsonConverters.toJson(Metrics,'List',context!), 'TotalItems': TotalItems }; getTypeName() => "AnalyticsItem"; TypeContext? context = _ctx; } class GetCustomMetricValuesData implements IConvertible { List? Result; List? MetricDisplayNames; GetCustomMetricValuesData({this.Result,this.MetricDisplayNames}); GetCustomMetricValuesData.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Result = JsonConverters.fromJson(json['Result'],'List',context!); MetricDisplayNames = JsonConverters.fromJson(json['MetricDisplayNames'],'List',context!); return this; } Map toJson() => { 'Result': JsonConverters.toJson(Result,'List',context!), 'MetricDisplayNames': JsonConverters.toJson(MetricDisplayNames,'List',context!) }; getTypeName() => "GetCustomMetricValuesData"; TypeContext? context = _ctx; } // @Route("/Sitefinity/Analytics/GetCustomMetricValues") class GetCustomMetricValuesMessage implements IReturn, IConvertible, IPost { List? MetricNames; int? LastNDays; int? MaxNDays; String? SiteId; GetCustomMetricValuesMessage({this.MetricNames,this.LastNDays,this.MaxNDays,this.SiteId}); GetCustomMetricValuesMessage.fromJson(Map json) { fromMap(json); } fromMap(Map json) { MetricNames = JsonConverters.fromJson(json['MetricNames'],'List',context!); LastNDays = json['LastNDays']; MaxNDays = json['MaxNDays']; SiteId = json['SiteId']; return this; } Map toJson() => { 'MetricNames': JsonConverters.toJson(MetricNames,'List',context!), 'LastNDays': LastNDays, 'MaxNDays': MaxNDays, 'SiteId': SiteId }; createResponse() => GetCustomMetricValuesData(); getResponseTypeName() => "GetCustomMetricValuesData"; getTypeName() => "GetCustomMetricValuesMessage"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'www.asg.com.au', types: { 'DimensionItem': TypeInfo(TypeOf.Class, create:() => DimensionItem()), 'MetricItem': TypeInfo(TypeOf.Class, create:() => MetricItem()), 'AnalyticsItem': TypeInfo(TypeOf.Class, create:() => AnalyticsItem()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetCustomMetricValuesData': TypeInfo(TypeOf.Class, create:() => GetCustomMetricValuesData()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetCustomMetricValuesMessage': TypeInfo(TypeOf.Class, create:() => GetCustomMetricValuesMessage()), });