static parseAttribute (attribute) {
    if (!attribute || typeof attribute !== 'string') return null
    try {
      return JSON.parse(attribute.replace(/'/g, '"')) || null
    } catch (e) {
      return null
    }
  }
/**
   * Helper function to parse object strings within attributes
   * return object if JSON parsable or null
   *
   * @static
   * @param {string} attribute
   * @return {any | null}
   */
Helper function to parse object strings within attributes
return object if JSON parsable or null

@static
@param {string} attribute
@return {any | null}
Helper function to parse object strings within attributes return object if JSON parsable or null @static @param { string } attribute @return { any | null }
static parseAttribute (attribute) {
    if (!attribute || typeof attribute !== 'string') return null
    try {
      return JSON.parse(attribute.replace(/'/g, '"')) || null
    } catch (e) {
      return null
    }
  }
static parseAttribute ( attribute ) { if ( ! attribute || typeof attribute !== 'string' ) return null try { return JSON . parse ( attribute . replace ( / ' / g , '"' ) ) || null } catch ( e ) { return null } }
Helper function to parse object strings within attributes
 return object if JSON parsable or null
Helper function to parse object strings within attributes return object if JSON parsable or null