Contact constructor
Contact({})
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;
}