lab attacehmenent model added
parent
5964dc911a
commit
8b18b19f80
@ -0,0 +1,28 @@
|
||||
class LabAttachmentItem {
|
||||
String? base64Content;
|
||||
String? fileName;
|
||||
int? fileSize;
|
||||
|
||||
LabAttachmentItem({this.base64Content, this.fileName, this.fileSize});
|
||||
|
||||
LabAttachmentItem.fromJson(Map<String, dynamic> json) {
|
||||
base64Content = json['base64Content'];
|
||||
fileName = json['fileName'];
|
||||
fileSize = json['fileSize'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = Map<String, dynamic>();
|
||||
data['base64Content'] = base64Content;
|
||||
data['fileName'] = fileName;
|
||||
data['fileSize'] = fileSize;
|
||||
return data;
|
||||
}
|
||||
|
||||
static List<LabAttachmentItem> fromJsonList(List<dynamic> jsonList) {
|
||||
return jsonList
|
||||
.map((item) => LabAttachmentItem.fromJson(item as Map<String, dynamic>))
|
||||
.toList();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue