serializeValue () {
    const value = this.getValue()

    if (
      typeof value !== 'boolean' &&
      typeof value !== 'number' &&
      typeof value !== 'string'
    ) {
      throw new Error(
        `Generic Settings can only serialize boolean, number and string ` +
        `values safely. Found value type ${typeof value}.`)
    }

    return value
  }
/**
   * Serializes Setting value to make it JSON serializable.
   * @override
   * @throws Throws an error if safe serialization not possible.
   * @return {mixed} Serialized data
   */
Serializes Setting value to make it JSON serializable.
@override
@throws Throws an error if safe serialization not possible.
@return {mixed} Serialized data
Serializes Setting value to make it JSON serializable . @override @throws Throws an error if safe serialization not possible . @return { mixed } Serialized data
serializeValue () {
    const value = this.getValue()
    if (
      typeof value !== 'boolean' &&
      typeof value !== 'number' &&
      typeof value !== 'string'
    ) {
      throw new Error(
        `Generic Settings can only serialize boolean, number and string ` +
        `values safely. Found value type ${typeof value}.`)
    }
    return value
  }
serializeValue ( ) { const value = this . getValue ( ) if ( typeof value !== 'boolean' && typeof value !== 'number' && typeof value !== 'string' ) { throw new Error ( ` ` + ` ${ typeof value } ` ) } return value }
Serializes Setting value to make it JSON serializable.
Serializes Setting value to make it JSON serializable .