toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'id': id,
'number': number,
'contactName': contactName,
'date': date?.millisecondsSinceEpoch,
'duration': duration?.inSeconds,
'isOutgoing': isOutgoing,
};
}