mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-15 01:35:25 +00:00
fixes unique id for card drag
This commit is contained in:
@ -1,5 +1,3 @@
|
||||
import 'dart:convert';
|
||||
|
||||
class ScenesModel {
|
||||
final String id;
|
||||
final String name;
|
||||
@ -7,11 +5,13 @@ class ScenesModel {
|
||||
final String type;
|
||||
final String? icon;
|
||||
|
||||
ScenesModel({required this.id, required this.name, required this.status, required this.type, this.icon});
|
||||
|
||||
factory ScenesModel.fromRawJson(String str) => ScenesModel.fromJson(json.decode(str));
|
||||
|
||||
String toRawJson() => json.encode(toJson());
|
||||
ScenesModel({
|
||||
required this.id,
|
||||
required this.name,
|
||||
required this.status,
|
||||
required this.type,
|
||||
this.icon,
|
||||
});
|
||||
|
||||
factory ScenesModel.fromJson(Map<String, dynamic> json) => ScenesModel(
|
||||
id: json["id"],
|
||||
|
Reference in New Issue
Block a user