mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
Created GetAnalyticsDevicesParam
.
This commit is contained in:
19
lib/pages/analytics/params/get_analytics_devices_param.dart
Normal file
19
lib/pages/analytics/params/get_analytics_devices_param.dart
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
class GetAnalyticsDevicesParam {
|
||||||
|
final String? spaceUuid;
|
||||||
|
final String deviceType;
|
||||||
|
final String? communityUuid;
|
||||||
|
|
||||||
|
const GetAnalyticsDevicesParam({
|
||||||
|
required this.spaceUuid,
|
||||||
|
required this.deviceType,
|
||||||
|
required this.communityUuid,
|
||||||
|
});
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
return <String, dynamic>{
|
||||||
|
'deviceType': deviceType,
|
||||||
|
if (spaceUuid != null) 'spaceUuid': spaceUuid,
|
||||||
|
if (communityUuid != null) 'communityUuid': communityUuid,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user