/* Options: Date: 2024-11-21 11:52:28 Version: 6.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://cip-reporting-dev.chargeitpro.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: LocationSummaryRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Company implements IConvertible { int? CompanyId; String? CompanyName; Company({this.CompanyId,this.CompanyName}); Company.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; CompanyName = json['CompanyName']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'CompanyName': CompanyName }; getTypeName() => "Company"; TypeContext? context = _ctx; } class CompanyProxy implements IConvertible { int? CompanyId; String? Name; String? CompanyName; CompanyProxy({this.CompanyId,this.Name,this.CompanyName}); CompanyProxy.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; Name = json['Name']; CompanyName = json['CompanyName']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'Name': Name, 'CompanyName': CompanyName }; getTypeName() => "CompanyProxy"; TypeContext? context = _ctx; } class LocationSummary implements IConvertible { String? LocationName; int? LocationKey; int? Count; double? AllCards; double? AllCC; double? DB; double? VSMCDC; double? AX; double? VS; double? MC; double? DC; double? JC; double? CU; double? XX; List? DeviceSummaries; LocationSummary({this.LocationName,this.LocationKey,this.Count,this.AllCards,this.AllCC,this.DB,this.VSMCDC,this.AX,this.VS,this.MC,this.DC,this.JC,this.CU,this.XX,this.DeviceSummaries}); LocationSummary.fromJson(Map json) { fromMap(json); } fromMap(Map json) { LocationName = json['LocationName']; LocationKey = json['LocationKey']; Count = json['Count']; AllCards = JsonConverters.toDouble(json['AllCards']); AllCC = JsonConverters.toDouble(json['AllCC']); DB = JsonConverters.toDouble(json['DB']); VSMCDC = JsonConverters.toDouble(json['VSMCDC']); AX = JsonConverters.toDouble(json['AX']); VS = JsonConverters.toDouble(json['VS']); MC = JsonConverters.toDouble(json['MC']); DC = JsonConverters.toDouble(json['DC']); JC = JsonConverters.toDouble(json['JC']); CU = JsonConverters.toDouble(json['CU']); XX = JsonConverters.toDouble(json['XX']); DeviceSummaries = JsonConverters.fromJson(json['DeviceSummaries'],'List',context!); return this; } Map toJson() => { 'LocationName': LocationName, 'LocationKey': LocationKey, 'Count': Count, 'AllCards': AllCards, 'AllCC': AllCC, 'DB': DB, 'VSMCDC': VSMCDC, 'AX': AX, 'VS': VS, 'MC': MC, 'DC': DC, 'JC': JC, 'CU': CU, 'XX': XX, 'DeviceSummaries': JsonConverters.toJson(DeviceSummaries,'List',context!) }; getTypeName() => "LocationSummary"; TypeContext? context = _ctx; } // @Route("/CompanyLocations/Summary/{CompanyId}") // @Route("/CompanyLocations/Summary/{CompanyId}/{UserId}") class LocationSummaryRequest implements IReturn>, IConvertible { int? CompanyId; String? UserId; LocationSummaryRequest({this.CompanyId,this.UserId}); LocationSummaryRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; UserId = json['UserId']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'UserId': UserId }; createResponse() => []; getResponseTypeName() => "List"; getTypeName() => "LocationSummaryRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'cip_reporting_dev.chargeitpro.com', types: { 'Company': TypeInfo(TypeOf.Class, create:() => Company()), 'CompanyProxy': TypeInfo(TypeOf.Class, create:() => CompanyProxy()), 'LocationSummary': TypeInfo(TypeOf.Class, create:() => LocationSummary()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'DeviceSummary': TypeInfo(TypeOf.Class, create:() => DeviceSummary()), 'LocationSummaryRequest': TypeInfo(TypeOf.Class, create:() => LocationSummaryRequest()), });