Contact constructor

Contact({
  1. Email? email,
  2. Phone? phone,
})

Implementation

factory Contact({
  Email? email,
  Phone? phone,
}) {
  final $result = create();
  if (email != null) {
    $result.email = email;
  }
  if (phone != null) {
    $result.phone = phone;
  }
  return $result;
}