src/FCMMessage.php
protected static function populateBuilder($builder, array $map, array $data)
    {
        foreach ($map as $key => $method) {
            $value = Arr::get($data, $key);
            $builder->{$method}($value);
        }

        return $builder;
    }
protected static function populateBuilder($builder, array $map, array $data)
    {
        foreach ($map as $key => $method) {
            $value = Arr::get($data, $key);
            $builder->{$method}($value);
        }

        return $builder;
    }
Populate Builder.

@param  object $builder
@param  array  $map
@param  array  $data
@return object