Message constructor
Message({})
Implementation
factory Message({
$fixnum.Int64? id,
$core.String? sender,
$core.String? senderName,
$core.String? receiver,
$1.MessageType? type,
$core.String? content,
$0.Timestamp? sendedAt,
$core.int? expire,
}) {
final _result = create();
if (id != null) {
_result.id = id;
}
if (sender != null) {
_result.sender = sender;
}
if (senderName != null) {
_result.senderName = senderName;
}
if (receiver != null) {
_result.receiver = receiver;
}
if (type != null) {
_result.type = type;
}
if (content != null) {
_result.content = content;
}
if (sendedAt != null) {
_result.sendedAt = sendedAt;
}
if (expire != null) {
_result.expire = expire;
}
return _result;
}