Permission.fromJSON constructor

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

Implementation

factory Permission.fromJSON(Map<String, dynamic> data) {
	return Permission(
		grants: (data["grants"] as List<dynamic>).map((x0) => PermissionItem.fromJSON(x0) ).toSet(),
		revokes: (data["revokes"] as List<dynamic>).map((x0) => PermissionItem.fromJSON(x0) ).toSet()
	);
}