Created initial remote implementation for all the services in the energy management module.

This commit is contained in:
Faris Armoush
2025-05-07 11:28:31 +03:00
parent d539e6266e
commit 38ff20f86a
6 changed files with 130 additions and 1 deletions

View File

@ -15,4 +15,13 @@ class PhasesEnergyConsumption extends Equatable {
@override
List<Object?> get props => [month, phaseA, phaseB, phaseC];
factory PhasesEnergyConsumption.fromJson(Map<String, dynamic> json) {
return PhasesEnergyConsumption(
month: json['month'] as int,
phaseA: (json['phaseA'] as num).toDouble(),
phaseB: (json['phaseB'] as num).toDouble(),
phaseC: (json['phaseC'] as num).toDouble(),
);
}
}