add doc_office & doctor to object
This commit is contained in:
@@ -3,14 +3,18 @@ class Note {
|
|||||||
final String note_name;
|
final String note_name;
|
||||||
final String note_text;
|
final String note_text;
|
||||||
final String insert_date;
|
final String insert_date;
|
||||||
|
final String doc_office;
|
||||||
|
final String doctor;
|
||||||
final String app_id;
|
final String app_id;
|
||||||
|
|
||||||
const Note({
|
const Note({
|
||||||
required this.idpatient_notes,
|
required this.idpatient_notes,
|
||||||
required this.note_name,
|
required this.note_name,
|
||||||
required this.note_text,
|
required this.note_text,
|
||||||
required this.app_id,
|
|
||||||
required this.insert_date,
|
required this.insert_date,
|
||||||
|
required this.doc_office,
|
||||||
|
required this.doctor,
|
||||||
|
required this.app_id,
|
||||||
});
|
});
|
||||||
|
|
||||||
factory Note.fromJson(Map<String, dynamic> json) {
|
factory Note.fromJson(Map<String, dynamic> json) {
|
||||||
@@ -20,6 +24,8 @@ class Note {
|
|||||||
"note_name": String note_name,
|
"note_name": String note_name,
|
||||||
"note_text": String note_text,
|
"note_text": String note_text,
|
||||||
"insert_date": String insert_date,
|
"insert_date": String insert_date,
|
||||||
|
"doc_office": String doc_office,
|
||||||
|
"doctor": String doctor,
|
||||||
"app_id": String app_id,
|
"app_id": String app_id,
|
||||||
} =>
|
} =>
|
||||||
Note(
|
Note(
|
||||||
@@ -27,6 +33,8 @@ class Note {
|
|||||||
note_name: note_name,
|
note_name: note_name,
|
||||||
note_text: note_text,
|
note_text: note_text,
|
||||||
insert_date: insert_date,
|
insert_date: insert_date,
|
||||||
|
doc_office: doc_office,
|
||||||
|
doctor: doctor,
|
||||||
app_id: app_id,
|
app_id: app_id,
|
||||||
),
|
),
|
||||||
_ => throw const FormatException('Failed to load album.'),
|
_ => throw const FormatException('Failed to load album.'),
|
||||||
|
|||||||
Reference in New Issue
Block a user