DiaryEntry.fromJson constructor

DiaryEntry.fromJson(
  1. Map<String, dynamic> json
)

Creates a DiaryEntry from a JSON map.

Implementation

factory DiaryEntry.fromJson(Map<String, dynamic> json) {
  return DiaryEntry.fromMap(json['id'], json);
}