/* Options: Date: 2026-11-08 11:38:48 Version: 5.140 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://devapi.billhighway.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CacheStatsRq.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; // @Flags() class CacheResult { static const CacheResult None = const CacheResult._(0); static const CacheResult Miss = const CacheResult._(1); static const CacheResult Hit = const CacheResult._(2); static const CacheResult Put = const CacheResult._(4); static const CacheResult Deleted = const CacheResult._(8); static const CacheResult Cleared = const CacheResult._(16); static const CacheResult Added = const CacheResult._(32); static const CacheResult Updated = const CacheResult._(64); static const CacheResult Unavailable = const CacheResult._(128); static const CacheResult Expired = const CacheResult._(256); final int _value; const CacheResult._(this._value); int get value => _value; static List get values => const [None,Miss,Hit,Put,Deleted,Cleared,Added,Updated,Unavailable,Expired]; } class CacheLocation { static const CacheLocation None = const CacheLocation._(0); static const CacheLocation OutOfProcess = const CacheLocation._(1); static const CacheLocation InProcess = const CacheLocation._(2); static const CacheLocation InContext = const CacheLocation._(3); final int _value; const CacheLocation._(this._value); int get value => _value; static List get values => const [None,OutOfProcess,InProcess,InContext]; } class CacheKey implements IConvertible { String? Region; String? BaseKey; String? Key; int? ExpirationSeconds; CacheKey({this.Region,this.BaseKey,this.Key,this.ExpirationSeconds}); CacheKey.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Region = json['Region']; BaseKey = json['BaseKey']; Key = json['Key']; ExpirationSeconds = json['ExpirationSeconds']; return this; } Map toJson() => { 'Region': Region, 'BaseKey': BaseKey, 'Key': Key, 'ExpirationSeconds': ExpirationSeconds }; getTypeName() => "CacheKey"; TypeContext? context = _ctx; } abstract class CacheResultBase { CacheResult? Result; CacheLocation? Location; CacheKey? Key; CacheResultBase({this.Result,this.Location,this.Key}); CacheResultBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Result = JsonConverters.fromJson(json['Result'],'CacheResult',context!); Location = JsonConverters.fromJson(json['Location'],'CacheLocation',context!); Key = JsonConverters.fromJson(json['Key'],'CacheKey',context!); return this; } Map toJson() => { 'Result': JsonConverters.toJson(Result,'CacheResult',context!), 'Location': JsonConverters.toJson(Location,'CacheLocation',context!), 'Key': JsonConverters.toJson(Key,'CacheKey',context!) }; getTypeName() => "CacheResultBase"; TypeContext? context = _ctx; } class CacheStat implements IConvertible { String? Name; String? Value; CacheStat({this.Name,this.Value}); CacheStat.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Name = json['Name']; Value = json['Value']; return this; } Map toJson() => { 'Name': Name, 'Value': Value }; getTypeName() => "CacheStat"; TypeContext? context = _ctx; } class CacheStatResult extends CacheResultBase implements IConvertible { List? Statistics; bool? IsHit; CacheStatResult({this.Statistics,this.IsHit}); CacheStatResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Statistics = JsonConverters.fromJson(json['Statistics'],'List',context!); IsHit = json['IsHit']; return this; } Map toJson() => super.toJson()..addAll({ 'Statistics': JsonConverters.toJson(Statistics,'List',context!), 'IsHit': IsHit }); getTypeName() => "CacheStatResult"; TypeContext? context = _ctx; } class CacheStatsRs implements IConvertible { CacheStatResult? Statistics; CacheStatsRs({this.Statistics}); CacheStatsRs.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Statistics = JsonConverters.fromJson(json['Statistics'],'CacheStatResult',context!); return this; } Map toJson() => { 'Statistics': JsonConverters.toJson(Statistics,'CacheStatResult',context!) }; getTypeName() => "CacheStatsRs"; TypeContext? context = _ctx; } // @Route("/devops/api/caches/{location}/stats", "GET") class CacheStatsRq implements IReturn, IConvertible { String? location; CacheStatsRq({this.location}); CacheStatsRq.fromJson(Map json) { fromMap(json); } fromMap(Map json) { location = json['location']; return this; } Map toJson() => { 'location': location }; createResponse() => CacheStatsRs(); getResponseTypeName() => "CacheStatsRs"; getTypeName() => "CacheStatsRq"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: { 'CacheResult': TypeInfo(TypeOf.Enum, enumValues:CacheResult.values), 'CacheLocation': TypeInfo(TypeOf.Enum, enumValues:CacheLocation.values), 'CacheKey': TypeInfo(TypeOf.Class, create:() => CacheKey()), 'CacheResultBase': TypeInfo(TypeOf.AbstractClass), 'CacheStat': TypeInfo(TypeOf.Class, create:() => CacheStat()), 'CacheStatResult': TypeInfo(TypeOf.Class, create:() => CacheStatResult()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CacheStatsRs': TypeInfo(TypeOf.Class, create:() => CacheStatsRs()), 'CacheStatsRq': TypeInfo(TypeOf.Class, create:() => CacheStatsRq()), });