toMap property
Map
get
toMap
Convert SMS to map
Implementation
Map get toMap {
Map res = {};
if (_address != null) {
res["address"] = _address;
}
if (_body != null) {
res["body"] = _body;
}
if (_sim != null) {
res["sub_id"] = _sim;
}
if (_id != null) {
res["_id"] = _id;
}
if (_threadId != null) {
res["thread_id"] = _threadId;
}
if (_read != null) {
res["read"] = _read;
}
if (_date != null) {
res["date"] = _date!.millisecondsSinceEpoch;
}
if (_dateSent != null) {
res["dateSent"] = _dateSent!.millisecondsSinceEpoch;
}
return res;
}