Merge pull request #176 from SyncrowIOT/SP-1510-FE-Build-Occupancy-Bar-Chart-Monthly-Consumption-View

Sp 1510 fe build occupancy bar chart monthly consumption view
This commit is contained in:
Faris Armoush
2025-05-08 16:32:21 +03:00
committed by GitHub
parent 53222bee81
commit 2e2bc99501
18 changed files with 585 additions and 49 deletions

View File

@ -0,0 +1,18 @@
import 'package:equatable/equatable.dart';
class Occupacy extends Equatable {
final String date;
final String occupancy;
const Occupacy({required this.date, required this.occupancy});
factory Occupacy.fromJson(Map<String, dynamic> json) {
return Occupacy(
date: json['date'] as String,
occupancy: json['occupancy'] as String,
);
}
@override
List<Object?> get props => [date, occupancy];
}