Human constructor

Human({
  1. Profile? profile,
  2. Email? email,
  3. Phone? phone,
  4. Timestamp? passwordChanged,
})

Implementation

factory Human({
  Profile? profile,
  Email? email,
  Phone? phone,
  $1.Timestamp? passwordChanged,
}) {
  final result = create();
  if (profile != null) result.profile = profile;
  if (email != null) result.email = email;
  if (phone != null) result.phone = phone;
  if (passwordChanged != null) result.passwordChanged = passwordChanged;
  return result;
}