bump gomuks, use new pause/resume commands
This commit is contained in:
parent
f971c50df0
commit
a2638d5c82
1 changed files with 11 additions and 4 deletions
|
|
@ -15,7 +15,10 @@ extension GomuksOwnedBufferToX on GomuksOwnedBuffer {
|
|||
}
|
||||
}
|
||||
|
||||
dynamic toJsonAndFree() => jsonDecode(utf8.decode(toBytesAndFree()));
|
||||
dynamic toJsonAndFree() {
|
||||
final bytes = toBytesAndFree();
|
||||
return bytes.isEmpty ? null : jsonDecode(utf8.decode(bytes));
|
||||
}
|
||||
}
|
||||
|
||||
extension JsonToGomuksBuffer on Map<String, dynamic> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue