Message constructor

Message({
  1. String? mid,
  2. String? status,
  3. String? timestamp,
  4. String? client,
  5. String? version,
  6. String? type,
  7. User? user,
  8. Text? text,
  9. Image? image,
  10. File? file,
  11. Voice? voice,
  12. Video? video,
  13. Location? location,
  14. Link? link,
  15. Receipt? receipt,
  16. Reply? reply,
  17. Preview? preview,
  18. Recall? recall,
  19. Transfer? transfer,
  20. Invite? invite,
  21. Notice? notice,
  22. Extra? extra,
  23. Thread? thread,
  24. bool? encrypted,
})

Implementation

factory Message({
  $core.String? mid,
  $core.String? status,
  $core.String? timestamp,
  $core.String? client,
  $core.String? version,
  $core.String? type,
  $0.User? user,
  Text? text,
  Image? image,
  File? file,
  Voice? voice,
  Video? video,
  Location? location,
  Link? link,
  Receipt? receipt,
  Reply? reply,
  Preview? preview,
  Recall? recall,
  Transfer? transfer,
  Invite? invite,
  Notice? notice,
  Extra? extra,
  $1.Thread? thread,
  $core.bool? encrypted,
}) {
  final _result = create();
  if (mid != null) {
    _result.mid = mid;
  }
  if (status != null) {
    _result.status = status;
  }
  if (timestamp != null) {
    _result.timestamp = timestamp;
  }
  if (client != null) {
    _result.client = client;
  }
  if (version != null) {
    _result.version = version;
  }
  if (type != null) {
    _result.type = type;
  }
  if (user != null) {
    _result.user = user;
  }
  if (text != null) {
    _result.text = text;
  }
  if (image != null) {
    _result.image = image;
  }
  if (file != null) {
    _result.file = file;
  }
  if (voice != null) {
    _result.voice = voice;
  }
  if (video != null) {
    _result.video = video;
  }
  if (location != null) {
    _result.location = location;
  }
  if (link != null) {
    _result.link = link;
  }
  if (receipt != null) {
    _result.receipt = receipt;
  }
  if (reply != null) {
    _result.reply = reply;
  }
  if (preview != null) {
    _result.preview = preview;
  }
  if (recall != null) {
    _result.recall = recall;
  }
  if (transfer != null) {
    _result.transfer = transfer;
  }
  if (invite != null) {
    _result.invite = invite;
  }
  if (notice != null) {
    _result.notice = notice;
  }
  if (extra != null) {
    _result.extra = extra;
  }
  if (thread != null) {
    _result.thread = thread;
  }
  if (encrypted != null) {
    _result.encrypted = encrypted;
  }
  return _result;
}