mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
gen client
This commit is contained in:
Generated
+3
@@ -220,6 +220,9 @@ Future<String> _decodeBodyBytes(Response response) async {
|
||||
/// Returns a valid [T] value found at the specified Map [key], null otherwise.
|
||||
T? mapValueOfType<T>(dynamic map, String key) {
|
||||
final dynamic value = map is Map ? map[key] : null;
|
||||
if (T == double && value is int) {
|
||||
return value.toDouble() as T;
|
||||
}
|
||||
return value is T ? value : null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user