Membership constructor

Membership({
  1. String? userId,
  2. ObjectDetails? details,
  3. Iterable<String>? roles,
  4. String? displayName,
  5. bool? iam,
  6. String? orgId,
  7. String? projectId,
  8. String? projectGrantId,
})

Implementation

factory Membership({
  $core.String? userId,
  $8.ObjectDetails? details,
  $core.Iterable<$core.String>? roles,
  $core.String? displayName,
  $core.bool? iam,
  $core.String? orgId,
  $core.String? projectId,
  $core.String? projectGrantId,
}) {
  final $result = create();
  if (userId != null) {
    $result.userId = userId;
  }
  if (details != null) {
    $result.details = details;
  }
  if (roles != null) {
    $result.roles.addAll(roles);
  }
  if (displayName != null) {
    $result.displayName = displayName;
  }
  if (iam != null) {
    $result.iam = iam;
  }
  if (orgId != null) {
    $result.orgId = orgId;
  }
  if (projectId != null) {
    $result.projectId = projectId;
  }
  if (projectGrantId != null) {
    $result.projectGrantId = projectGrantId;
  }
  return $result;
}