mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-16 01:56:24 +00:00
added circular border
This commit is contained in:
@ -0,0 +1,22 @@
|
||||
class DeviceTypeModel {
|
||||
final String name;
|
||||
final String icon;
|
||||
|
||||
DeviceTypeModel({required this.name, required this.icon});
|
||||
|
||||
// Factory method for creating a new DeviceTypeModel from JSON
|
||||
factory DeviceTypeModel.fromJson(Map<String, dynamic> json) {
|
||||
return DeviceTypeModel(
|
||||
name: json['name'],
|
||||
icon: json['icon'],
|
||||
);
|
||||
}
|
||||
|
||||
// Convert this model to JSON format
|
||||
Map<String, dynamic> toJson() {
|
||||
return {
|
||||
'name': name,
|
||||
'icon': icon,
|
||||
};
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user