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