Message constructor

Message({
  1. Int64? id,
  2. String? sender,
  3. String? senderName,
  4. String? receiver,
  5. MessageType? type,
  6. String? content,
  7. Timestamp? sendedAt,
  8. int? expire,
})

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;
}