def to_hash
      Hash[options.reject(&:null?).map { |o| [o.key, o.value] }]
    end
def to_hash
      Hash[options.reject(&:null?).map { |o| [o.key, o.value] }]
    end
Returns a hash with option key => value.