public function create(array $data = [], $key = null)
    {
        $type = self::resolveImageType($key);

        return $this->hydrate($type, $data);
    }
public function create(array $data = [], $key = null)
    {
        $type = self::resolveImageType($key);

        return $this->hydrate($type, $data);
    }
public function create ( array $ data = [ ] , $ key = null ) { $ type = self :: resolveImageType ( $ key ) ; return $ this -> hydrate ( $ type , $ data ) ; }
Convert an array to an hydrated object

@param  array       $data
@param  string|null $key
@return Image
Convert an array to an hydrated object