You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
334 B
22 lines
334 B
11 months ago
|
class UserRoleModel {
|
||
|
int? id;
|
||
|
String? name;
|
||
|
|
||
|
UserRoleModel({
|
||
|
this.id,
|
||
|
this.name,
|
||
|
});
|
||
|
|
||
|
UserRoleModel.fromJson(Map<String, dynamic> json) {
|
||
|
id = json['id'];
|
||
|
name = json['name'] != null ? json['name'] : null;
|
||
|
}
|
||
|
|
||
|
Map<String, dynamic> toJson() {
|
||
|
return {
|
||
|
'id': id,
|
||
|
'name': name,
|
||
|
};
|
||
|
}
|
||
|
}
|