other things in notes
This commit is contained in:
22
filcnaplo/lib/models/self_note.dart
Normal file
22
filcnaplo/lib/models/self_note.dart
Normal file
@@ -0,0 +1,22 @@
|
||||
class SelfNote {
|
||||
String id;
|
||||
String? title;
|
||||
String content;
|
||||
Map? json;
|
||||
|
||||
SelfNote({
|
||||
required this.id,
|
||||
this.title,
|
||||
required this.content,
|
||||
this.json,
|
||||
});
|
||||
|
||||
factory SelfNote.fromJson(Map json) {
|
||||
return SelfNote(
|
||||
id: json['id'],
|
||||
title: json['title'],
|
||||
content: json['content'],
|
||||
json: json,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user