Skip to content

Commit 1331f09

Browse files
chore: update Android SDK to 24.1.0
1 parent 5a1595b commit 1331f09

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

library/src/main/java/io/appwrite/models/Document.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ data class Document<T>(
9999
createdAt = map["\$createdAt"] as String,
100100
updatedAt = map["\$updatedAt"] as String,
101101
permissions = map["\$permissions"] as List<String>,
102-
data = map["data"]?.jsonCast(to = nestedType) ?: map.jsonCast(to = nestedType)
102+
data = map["data"]?.jsonCast(to = nestedType) ?: emptyMap<String, Any>().jsonCast(to = nestedType)
103103
)
104104
}
105105
}

library/src/main/java/io/appwrite/models/Presence.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ data class Presence<T>(
109109
status = map["status"] as? String,
110110
source = map["source"] as String,
111111
expiresAt = map["expiresAt"] as? String,
112-
metadata = map["metadata"]?.jsonCast(to = nestedType) ?: map.jsonCast(to = nestedType)
112+
metadata = map["metadata"]?.jsonCast(to = nestedType) ?: emptyMap<String, Any>().jsonCast(to = nestedType)
113113
)
114114
}
115115
}

library/src/main/java/io/appwrite/models/Row.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ data class Row<T>(
9999
createdAt = map["\$createdAt"] as String,
100100
updatedAt = map["\$updatedAt"] as String,
101101
permissions = map["\$permissions"] as List<String>,
102-
data = map["data"]?.jsonCast(to = nestedType) ?: map.jsonCast(to = nestedType)
102+
data = map["data"]?.jsonCast(to = nestedType) ?: emptyMap<String, Any>().jsonCast(to = nestedType)
103103
)
104104
}
105105
}

0 commit comments

Comments
 (0)