toMap method
Converts the SmsMessage to a Map for serialization
Implementation
Map<String, dynamic> toMap() {
return {
'id': id,
'address': address,
'body': body,
'date': date.millisecondsSinceEpoch,
'dateSent': dateSent.millisecondsSinceEpoch,
'type': type.value,
'read': read,
};
}