SpacePermissionSubjects.fromJson constructor

SpacePermissionSubjects.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory SpacePermissionSubjects.fromJson(Map<String, Object?> json) {
  return SpacePermissionSubjects(
    user: json[r'user'] != null
        ? SpacePermissionSubjectsUser.fromJson(
            json[r'user']! as Map<String, Object?>)
        : null,
    group: json[r'group'] != null
        ? SpacePermissionSubjectsGroup.fromJson(
            json[r'group']! as Map<String, Object?>)
        : null,
    expandable: json[r'_expandable'] != null
        ? SpacePermissionSubjectsExpandable.fromJson(
            json[r'_expandable']! as Map<String, Object?>)
        : null,
  );
}