DeviceVolumeDataChanged.fromEvent constructor

DeviceVolumeDataChanged.fromEvent(
  1. String data
)

Implementation

factory DeviceVolumeDataChanged.fromEvent(String data) {
  var json = jsonDecode(data);
  return DeviceVolumeDataChanged(
      volume: json['volume'], isMuted: json['isMuted']);
}