KpiMonthValue class

DTO que asocia un valor KPI numérico a un mes concreto.

Utilizado en las gráficas de evolución mensual del dashboard (ingresos, éxitus, estancia media, etc.).

Constructors

KpiMonthValue({required int month, required double value})
KpiMonthValue.fromJson(Map<String, dynamic> json)
Crea una instancia a partir del JSON devuelto por el backend. El campo value se normaliza a double para soportar decimales.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
month int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value double
final

Methods

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

Operators

operator ==(Object other) bool
The equality operator.
inherited