Message constructor
Message({
- String? mid,
- String? status,
- String? timestamp,
- String? client,
- String? version,
- String? type,
- 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,
- Thread? thread,
- 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;
}