toJson method

Map<String, dynamic> toJson()

Implementation

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