toMap method

Map<String, Object?> toMap()

Implementation

Map<String, Object?> toMap() {
  final now = DateTime.now().toIso8601String();
  final map = {'title': title, 'body': body, 'date': now};

  return map;
}