mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-08-02 19:56:14 -04:00
Fixed for attach speed and futures optimizations
This commit is contained in:
parent
8de19e0d26
commit
90036e0653
153 changed files with 2037 additions and 1167 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue