SpacePermission.fromJson constructor
Implementation
factory SpacePermission.fromJson(Map<String, Object?> json) {
return SpacePermission(
id: (json[r'id'] as num?)?.toInt(),
subjects: json[r'subjects'] != null
? SpacePermissionSubjects.fromJson(
json[r'subjects']! as Map<String, Object?>)
: null,
operation: OperationCheckResult.fromJson(
json[r'operation'] as Map<String, Object?>? ?? const {}),
anonymousAccess: json[r'anonymousAccess'] as bool? ?? false,
unlicensedAccess: json[r'unlicensedAccess'] as bool? ?? false,
);
}