public static function callSetters(
        $object,
        array $input,
        array $allowed = null
    ) {
        $filtered = ArrayMap::of($input);

        if ($allowed !== null) {
            $filtered = $filtered->only($allowed);
        }

        $filtered->each(function ($value, $key) use (&$object) {
            $setterName = 'set' . Str::studly($key);

            $object->$setterName($value);
        });
    }