NotificationMessage constructor

NotificationMessage({
  1. String? id,
  2. NotificationMessage_NotificationType? type,
  3. Int64? timestamp,
  4. String? title,
  5. String? message,
  6. TradeInfo? trade,
  7. 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;
}