profile page fix bugs

This commit is contained in:
mohammad
2024-07-25 16:27:09 +03:00
parent 76b867d4b9
commit 00199dda90
5 changed files with 6 additions and 6 deletions

View File

@ -0,0 +1,25 @@
class RegionModel {
final String name;
final String id;
RegionModel({
required this.name,
required this.id,
});
factory RegionModel.fromJson(Map<String, dynamic> json) {
return RegionModel(
name: json['regionName'],
id: json['uuid'].toString(), // Ensure id is a String
);
}
Map<String, dynamic> toJson() {
return {
'regionName': name,
'uuid': id,
};
}
}