added circular border

This commit is contained in:
hannathkadher
2024-10-09 16:04:05 +04:00
parent e09dc966e0
commit b87bbb9a62
13 changed files with 437 additions and 54 deletions

View File

@ -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,
};
}
}