Note.fromMap constructor

Note.fromMap(
  1. Map<String, Object?> map
)

Implementation

factory Note.fromMap(Map<String, Object?> map) {
  return Note(
    id: map['id'] as int,
    title: map['title'] as String,
    body: map['body'] as String,
    date: map['date'] as String,
  );
}