/* Options: Date: 2025-01-08 03:21:15 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: AdminData.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class PageStats implements IConvertible { String? label; int? total; PageStats({this.label,this.total}); PageStats.fromJson(Map json) { fromMap(json); } fromMap(Map json) { label = json['label']; total = json['total']; return this; } Map toJson() => { 'label': label, 'total': total }; getTypeName() => "PageStats"; TypeContext? context = _ctx; } class AdminDataResponse implements IConvertible { List? pageStats = []; ResponseStatus? responseStatus; AdminDataResponse({this.pageStats,this.responseStatus}); AdminDataResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { pageStats = JsonConverters.fromJson(json['pageStats'],'List',context!); responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'pageStats': JsonConverters.toJson(pageStats,'List',context!), 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "AdminDataResponse"; TypeContext? context = _ctx; } // @ValidateRequest(Validator="IsAdmin") class AdminData implements IReturn, IGet, IConvertible { AdminData(); AdminData.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => AdminDataResponse(); getResponseTypeName() => "AdminDataResponse"; getTypeName() => "AdminData"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'PageStats': TypeInfo(TypeOf.Class, create:() => PageStats()), 'AdminDataResponse': TypeInfo(TypeOf.Class, create:() => AdminDataResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'AdminData': TypeInfo(TypeOf.Class, create:() => AdminData()), });