Intended to take a HtmlAttributes type and convert it into a Dictionary.
public static IDictionary<string, object> ToDictionary(this object obj)
The HtmlAttributes value to convert into a Dictionary object.
var attr = htmlAttributes.ToDictionary();