RoleConfiguration.fromJSON constructor

RoleConfiguration.fromJSON(
  1. Map<String, dynamic> data
)

Implementation

factory RoleConfiguration.fromJSON(Map<String, dynamic> data) {
	return RoleConfiguration(
		RoleConfigurationSource.fromJSON(data["source"]),
		roles: (data["roles"] as List<dynamic>).map((x0) => (x0 as String) ).toSet(),
	);
}