Role constructor

Role({
  1. required String name,
})

Creates a new role with the given name.

Example:

final role = Role(name: 'staff');

Implementation

Role({required this.name}) : super.fromJson({});