Role constructor
- required String name,
Creates a new role with the given name.
Example:
final role = Role(name: 'staff');
Implementation
Role({required this.name}) : super.fromJson({});
Creates a new role with the given name.
Example:
final role = Role(name: 'staff');
Role({required this.name}) : super.fromJson({});