Contact constructor

Contact({
  1. String? id,
  2. String? fromUserId,
  3. String? toUserId,
  4. User? from,
  5. User? to,
  6. bool? accepted,
  7. Timestamp? acceptedAt,
  8. Timestamp? sentAt,
})

Implementation

factory Contact({
  $core.String? id,
  $core.String? fromUserId,
  $core.String? toUserId,
  User? from,
  User? to,
  $core.bool? accepted,
  $1.Timestamp? acceptedAt,
  $1.Timestamp? sentAt,
}) {
  final _result = create();
  if (id != null) {
    _result.id = id;
  }
  if (fromUserId != null) {
    _result.fromUserId = fromUserId;
  }
  if (toUserId != null) {
    _result.toUserId = toUserId;
  }
  if (from != null) {
    _result.from = from;
  }
  if (to != null) {
    _result.to = to;
  }
  if (accepted != null) {
    _result.accepted = accepted;
  }
  if (acceptedAt != null) {
    _result.acceptedAt = acceptedAt;
  }
  if (sentAt != null) {
    _result.sentAt = sentAt;
  }
  return _result;
}