NotificationMessage constructor
NotificationMessage({
- String? id,
- NotificationMessage_NotificationType? type,
- Int64? timestamp,
- String? title,
- String? message,
- TradeInfo? trade,
- ChatMessage? chatMessage,
Implementation
factory NotificationMessage({
$core.String? id,
NotificationMessage_NotificationType? type,
$fixnum.Int64? timestamp,
$core.String? title,
$core.String? message,
TradeInfo? trade,
$1.ChatMessage? chatMessage,
}) {
final $result = create();
if (id != null) {
$result.id = id;
}
if (type != null) {
$result.type = type;
}
if (timestamp != null) {
$result.timestamp = timestamp;
}
if (title != null) {
$result.title = title;
}
if (message != null) {
$result.message = message;
}
if (trade != null) {
$result.trade = trade;
}
if (chatMessage != null) {
$result.chatMessage = chatMessage;
}
return $result;
}