mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-16 01:56:24 +00:00
20 lines
480 B
Dart
20 lines
480 B
Dart
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,
|
|
};
|
|
}
|
|
}
|