Creates a DiaryCard from a JSON map.
factory DiaryCard.fromJson(Map<String, dynamic> json) { return DiaryCard.fromMap(json['id'], json); }