mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
analytics devices integtation.
This commit is contained in:
@ -1,11 +1,13 @@
|
||||
class AnalyticsDevice {
|
||||
const AnalyticsDevice(this.uuid);
|
||||
const AnalyticsDevice({required this.name, required this.uuid});
|
||||
|
||||
final String uuid;
|
||||
final String name;
|
||||
|
||||
factory AnalyticsDevice.fromJson(Map<String, dynamic> json) {
|
||||
return AnalyticsDevice(
|
||||
json['uuid'] as String? ?? '',
|
||||
uuid: json['uuid'] as String? ?? '',
|
||||
name: json['name'] as String? ?? '',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user