changed everything from filcnaplo to refilc finally
This commit is contained in:
28
refilc/lib/models/self_note.dart
Normal file
28
refilc/lib/models/self_note.dart
Normal file
@@ -0,0 +1,28 @@
|
||||
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,
|
||||
);
|
||||
}
|
||||
|
||||
get toJson => {
|
||||
'id': id,
|
||||
'title': title,
|
||||
'content': content,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user