public static function fromNative($latLng)
    {
        if (is_string($latLng)) {
            return static::fromString($latLng);
        } elseif (is_array($latLng) || $latLng instanceof \ArrayObject) {
            return static::fromArray($latLng);
        }

        throw new InvalidArgumentException('Could not create LatLng from native value', 0, $latLng);
    }
public static function fromNative($latLng)
    {
        if (is_string($latLng)) {
            return static::fromString($latLng);
        } elseif (is_array($latLng) || $latLng instanceof \ArrayObject) {
            return static::fromArray($latLng);
        }

        throw new InvalidArgumentException('Could not create LatLng from native value', 0, $latLng);
    }
public static function fromNative ( $ latLng ) { if ( is_string ( $ latLng ) ) { return static :: fromString ( $ latLng ) ; } elseif ( is_array ( $ latLng ) || $ latLng instanceof \ ArrayObject ) { return static :: fromArray ( $ latLng ) ; } throw new InvalidArgumentException ( 'Could not create LatLng from native value' , 0 , $ latLng ) ; }
Create LatLng from a native representation.

Supported values are array and string. Look at fromString and fromArray method for more details.

@param mixed $latLng Native latLng representation.

@return LatLng
@throws InvalidArgumentException If LatLng could not be created.
Create LatLng from a native representation .