mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
14 lines
326 B
Dart
14 lines
326 B
Dart
class AnalyticsDevice {
|
|
const AnalyticsDevice({required this.name, required this.uuid});
|
|
|
|
final String uuid;
|
|
final String name;
|
|
|
|
factory AnalyticsDevice.fromJson(Map<String, dynamic> json) {
|
|
return AnalyticsDevice(
|
|
uuid: json['uuid'] as String? ?? '',
|
|
name: json['name'] as String? ?? '',
|
|
);
|
|
}
|
|
}
|