Fixed for attach speed and futures optimizations

This commit is contained in:
Christien Rioux 2025-02-26 15:34:31 +00:00
parent 8de19e0d26
commit 90036e0653
153 changed files with 2037 additions and 1167 deletions

View file

@ -30,17 +30,6 @@ export 'veilid_table_db.dart';
//////////////////////////////////////
/// JSON Encode Helper
Object? veilidApiToEncodable(Object? value) {
if (value == null) {
return value;
}
switch (value.runtimeType) {
// case KeyPair:
// return (value as KeyPair).json;
}
throw UnsupportedError('Cannot convert to JSON: $value');
}
List<T> Function(dynamic) jsonListConstructor<T>(
T Function(dynamic) jsonConstructor) =>
(dynamic j) => (j as List<dynamic>).map(jsonConstructor).toList();