forked from firka/student-legacy
23 lines
353 B
Dart
23 lines
353 B
Dart
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,
|
|
);
|
|
}
|
|
}
|