toMap method

Map<String, dynamic> toMap()

Converts this model into a map format for saving to Firestore.

Implementation

Map<String, dynamic> toMap() {
  return {
    'date': date.toIso8601String(),
    'description': title,
    'place': place,
    'imageUrl': imageUrl,
  };
}