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.
16 lines
320 B
16 lines
320 B
class Permission {
|
|
final int? id;
|
|
final String name;
|
|
|
|
Permission({this.id, required this.name});
|
|
|
|
factory Permission.fromMap(Map<String, dynamic> map) => Permission(
|
|
id: map['id'],
|
|
name: map['name'],
|
|
);
|
|
|
|
Map<String, dynamic> toMap() => {
|
|
'id': id,
|
|
'name': name,
|
|
};
|
|
}
|