MetricsResponse class

Constructors

MetricsResponse({int? arr, int? burn, int? cash, int? cogs, int? deferredRevenue, List<Figure> figures = const [], String? from, int? grossMarginBps, int? grossProfit, int? monthlyBurn, int? months, int? mrr, int? netIncome, String? period, int? revenue, int? runwayMonths, String? to})
Returns a new MetricsResponse instance.

Properties

arr ↔ int?
ARR is annualized recurring revenue in cents (MRR × 12).
getter/setter pair
burn ↔ int?
Burn is total expense in cents over the period.
getter/setter pair
cash ↔ int?
Cash is the bank + processor-clearing balance in cents as of To.
getter/setter pair
cogs ↔ int?
COGS is cost of goods sold in cents over the period.
getter/setter pair
deferredRevenue ↔ int?
DeferredRevenue is the customer-wallet liability in cents as of To.
getter/setter pair
figures ↔ List<Figure>
Figures is the same snapshot rendered through books' one money formatter.
getter/setter pair
from ↔ String?
From is the RFC3339 start of the reporting window, exclusive; absent for all time.
getter/setter pair
grossMarginBps ↔ int?
GrossMarginBps is GrossProfit / Revenue in basis points (7000 = 70%).
getter/setter pair
grossProfit ↔ int?
GrossProfit is Revenue − COGS, in cents.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
monthlyBurn ↔ int?
MonthlyBurn is net cash burned per month in cents; 0 when not losing cash.
getter/setter pair
months ↔ int?
Months is the window length in whole months used to normalize MRR and burn.
getter/setter pair
mrr ↔ int?
MRR is monthly recurring revenue in cents.
getter/setter pair
netIncome ↔ int?
NetIncome is Revenue − Burn, in cents.
getter/setter pair
period ↔ String?
Period is the human window label, e.g. "2026-07" or "all-time".
getter/setter pair
revenue ↔ int?
Revenue is recognized revenue in cents over the period.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
runwayMonths ↔ int?
RunwayMonths is Cash / MonthlyBurn; -1 means infinite (the org is not burning).
getter/setter pair
to ↔ String?
To is the RFC3339 end of the reporting window, inclusive; absent for up to now.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → MetricsResponse?
Returns a new MetricsResponse instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<MetricsResponse>
mapFromJson(dynamic json) → Map<String, MetricsResponse>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<MetricsResponse>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.