Member constructor

Member({
  1. String? userId,
  2. ObjectDetails? details,
  3. Iterable<String>? roles,
  4. String? preferredLoginName,
  5. String? email,
  6. String? firstName,
  7. String? lastName,
  8. String? displayName,
  9. String? avatarUrl,
  10. Type? userType,
})

Implementation

factory Member({
  $core.String? userId,
  $8.ObjectDetails? details,
  $core.Iterable<$core.String>? roles,
  $core.String? preferredLoginName,
  $core.String? email,
  $core.String? firstName,
  $core.String? lastName,
  $core.String? displayName,
  $core.String? avatarUrl,
  $11.Type? userType,
}) {
  final $result = create();
  if (userId != null) {
    $result.userId = userId;
  }
  if (details != null) {
    $result.details = details;
  }
  if (roles != null) {
    $result.roles.addAll(roles);
  }
  if (preferredLoginName != null) {
    $result.preferredLoginName = preferredLoginName;
  }
  if (email != null) {
    $result.email = email;
  }
  if (firstName != null) {
    $result.firstName = firstName;
  }
  if (lastName != null) {
    $result.lastName = lastName;
  }
  if (displayName != null) {
    $result.displayName = displayName;
  }
  if (avatarUrl != null) {
    $result.avatarUrl = avatarUrl;
  }
  if (userType != null) {
    $result.userType = userType;
  }
  return $result;
}