mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-07-26 16:35:24 -04:00
better casts
This commit is contained in:
parent
6de2432c53
commit
11d621c9be
4 changed files with 4 additions and 4 deletions
|
@ -21,7 +21,7 @@ class ValueSubkeyRange extends Equatable {
|
|||
return ValueSubkeyRange(low: intlist[0], high: intlist[1]);
|
||||
}
|
||||
factory ValueSubkeyRange.fromJson(dynamic json) =>
|
||||
ValueSubkeyRange.fromIntList(json as List<int>);
|
||||
ValueSubkeyRange.fromIntList((json as List<dynamic>).cast<int>());
|
||||
|
||||
List<int> toJson() => <int>[low, high];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue