/* Options: Date: 2026-02-14 16:38:51 Version: 8.71 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://evovoice.io //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetDashboardHome.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class DashboardCustomerSpend implements IConvertible { String? customerId; String? customerName; double? callSpend; DashboardCustomerSpend({this.customerId,this.customerName,this.callSpend}); DashboardCustomerSpend.fromJson(Map json) { fromMap(json); } fromMap(Map json) { customerId = json['customerId']; customerName = json['customerName']; callSpend = JsonConverters.toDouble(json['callSpend']); return this; } Map toJson() => { 'customerId': customerId, 'customerName': customerName, 'callSpend': callSpend }; getTypeName() => "DashboardCustomerSpend"; TypeContext? context = _ctx; } class DashboardHomeData implements IConvertible { List? customerSpends; DashboardHomeData({this.customerSpends}); DashboardHomeData.fromJson(Map json) { fromMap(json); } fromMap(Map json) { customerSpends = JsonConverters.fromJson(json['customerSpends'],'List',context!); return this; } Map toJson() => { 'customerSpends': JsonConverters.toJson(customerSpends,'List',context!) }; getTypeName() => "DashboardHomeData"; TypeContext? context = _ctx; } // @Route("/dashboard/home") class GetDashboardHome implements IReturn, IConvertible, IGet { String? accountId; String? startDate; String? endDate; GetDashboardHome({this.accountId,this.startDate,this.endDate}); GetDashboardHome.fromJson(Map json) { fromMap(json); } fromMap(Map json) { accountId = json['accountId']; startDate = json['startDate']; endDate = json['endDate']; return this; } Map toJson() => { 'accountId': accountId, 'startDate': startDate, 'endDate': endDate }; createResponse() => DashboardHomeData(); getResponseTypeName() => "DashboardHomeData"; getTypeName() => "GetDashboardHome"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'evovoice.io', types: { 'DashboardCustomerSpend': TypeInfo(TypeOf.Class, create:() => DashboardCustomerSpend()), 'DashboardHomeData': TypeInfo(TypeOf.Class, create:() => DashboardHomeData()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetDashboardHome': TypeInfo(TypeOf.Class, create:() => GetDashboardHome()), });