Message constructor

Message({
  1. String? uid,
  2. String? type,
  3. String? content,
  4. String? status,
  5. String? createdAt,
  6. String? client,
  7. Thread? thread,
  8. User? user,
  9. String? extra,
})

Implementation

factory Message({
  $core.String? uid,
  $core.String? type,
  $core.String? content,
  $core.String? status,
  $core.String? createdAt,
  $core.String? client,
  $1.Thread? thread,
  $0.User? user,
  $core.String? extra,
}) {
  final $result = create();
  if (uid != null) {
    $result.uid = uid;
  }
  if (type != null) {
    $result.type = type;
  }
  if (content != null) {
    $result.content = content;
  }
  if (status != null) {
    $result.status = status;
  }
  if (createdAt != null) {
    $result.createdAt = createdAt;
  }
  if (client != null) {
    $result.client = client;
  }
  if (thread != null) {
    $result.thread = thread;
  }
  if (user != null) {
    $result.user = user;
  }
  if (extra != null) {
    $result.extra = extra;
  }
  return $result;
}