🐛 Fix balance value not being of type double

This commit is contained in:
2025-03-30 21:01:10 +02:00
parent 6567e13fdd
commit 47b266f216

View File

@ -83,7 +83,7 @@ class State {
String? toUuid; String? toUuid;
bool mute; bool mute;
double volume; double volume;
int balance; double balance;
State({ State({
this.toUuid, this.toUuid,
@ -96,7 +96,7 @@ class State {
toUuid: json["toUUID"], toUuid: json["toUUID"],
mute: json["mute"], mute: json["mute"],
volume: json["volume"]?.toDouble(), volume: json["volume"]?.toDouble(),
balance: json["balance"], balance: json["balance"]?.toDouble(),
); );
Map<String, dynamic> toJson() => { Map<String, dynamic> toJson() => {