/* Options: Date: 2024-05-05 04:58:09 Version: 8.13 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://techstacks.io //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetPageStats.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class GetPageStatsResponse implements IConvertible { String? type; String? slug; int? viewCount; int? favCount; GetPageStatsResponse({this.type,this.slug,this.viewCount,this.favCount}); GetPageStatsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { type = json['type']; slug = json['slug']; viewCount = json['viewCount']; favCount = json['favCount']; return this; } Map toJson() => { 'type': type, 'slug': slug, 'viewCount': viewCount, 'favCount': favCount }; getTypeName() => "GetPageStatsResponse"; TypeContext? context = _ctx; } // @Route("/pagestats/{Type}/{Slug}") class GetPageStats implements IReturn, IGet, IConvertible { String? type; String? slug; int? id; GetPageStats({this.type,this.slug,this.id}); GetPageStats.fromJson(Map json) { fromMap(json); } fromMap(Map json) { type = json['type']; slug = json['slug']; id = json['id']; return this; } Map toJson() => { 'type': type, 'slug': slug, 'id': id }; createResponse() => GetPageStatsResponse(); getResponseTypeName() => "GetPageStatsResponse"; getTypeName() => "GetPageStats"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'techstacks.io', types: { 'GetPageStatsResponse': TypeInfo(TypeOf.Class, create:() => GetPageStatsResponse()), 'GetPageStats': TypeInfo(TypeOf.Class, create:() => GetPageStats()), });