UserSystemMetadata.fromJSON constructor

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

Implementation

factory UserSystemMetadata.fromJSON(Map<String, dynamic> data) {
	return UserSystemMetadata(
		(data["roles"] as List<dynamic>).map((x0) => (x0 as String) ).toSet(),
		(data["isAdmin"] as bool),
		(data["inheritsRoles"] as bool)
	);
}