SpacePermissionCreateSubjects.fromJson constructor

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

Implementation

factory SpacePermissionCreateSubjects.fromJson(Map<String, Object?> json) {
  return SpacePermissionCreateSubjects(
    user: json[r'user'] != null
        ? SpacePermissionCreateSubjectsUser.fromJson(
            json[r'user']! as Map<String, Object?>)
        : null,
    group: json[r'group'] != null
        ? SpacePermissionCreateSubjectsGroup.fromJson(
            json[r'group']! as Map<String, Object?>)
        : null,
  );
}