CastMediaVolume(this.level, this.muted) : assert( level == null || (level >= 0 && level <= 1), 'level must be between 0 and 1', );