mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-14 09:17:37 +00:00
20 lines
405 B
Dart
20 lines
405 B
Dart
class GetTotalEnergyConsumptionParam {
|
|
final DateTime? startDate;
|
|
final DateTime? endDate;
|
|
final String? spaceId;
|
|
|
|
const GetTotalEnergyConsumptionParam({
|
|
this.startDate,
|
|
this.endDate,
|
|
this.spaceId,
|
|
});
|
|
|
|
Map<String, dynamic> toJson() {
|
|
return {
|
|
'startDate': startDate?.toIso8601String(),
|
|
'endDate': endDate?.toIso8601String(),
|
|
'spaceId': spaceId,
|
|
};
|
|
}
|
|
}
|