diff --git a/android/settings.gradle b/android/settings.gradle index ad89fbdc..b4401ef1 100644 --- a/android/settings.gradle +++ b/android/settings.gradle @@ -19,7 +19,7 @@ pluginManagement { plugins { id 'dev.flutter.flutter-plugin-loader' version "1.0.0" // apply true id "org.jetbrains.kotlin.android" version "2.0.0" apply false - id 'com.android.application' version "8.3.2" apply false + id 'com.android.application' version "8.9.0" apply false id "com.google.gms.google-services" version "4.4.0" apply false } diff --git a/lib/core/model/labs/lab_attachment_item.dart b/lib/core/model/labs/lab_attachment_item.dart new file mode 100644 index 00000000..f6b60f5c --- /dev/null +++ b/lib/core/model/labs/lab_attachment_item.dart @@ -0,0 +1,28 @@ +class LabAttachmentItem { + String? base64Content; + String? fileName; + int? fileSize; + + LabAttachmentItem({this.base64Content, this.fileName, this.fileSize}); + + LabAttachmentItem.fromJson(Map json) { + base64Content = json['base64Content']; + fileName = json['fileName']; + fileSize = json['fileSize']; + } + + Map toJson() { + final Map data = Map(); + data['base64Content'] = base64Content; + data['fileName'] = fileName; + data['fileSize'] = fileSize; + return data; + } + + static List fromJsonList(List jsonList) { + return jsonList + .map((item) => LabAttachmentItem.fromJson(item as Map)) + .toList(); + } +} +