more refactors and logs page handling

This commit is contained in:
shenlong-tanwen
2024-10-23 02:30:46 +05:30
parent 8f47645cdb
commit a0afea04d8
90 changed files with 2386 additions and 584 deletions

View File

@@ -35,10 +35,10 @@ dynamic upgradeDto(dynamic value, String targetType) {
}
}
addDefault(dynamic value, String keys, dynamic defaultValue) {
addDefault(Map value, String keys, dynamic defaultValue) {
// Loop through the keys and assign the default value if the key is not present
List<String> keyList = keys.split('.');
dynamic current = value;
Map current = value;
for (int i = 0; i < keyList.length - 1; i++) {
if (current[keyList[i]] == null) {