toObject() {
    const object = {};
    this.forEach((value, key) => {
      object[key] = value
    });

    return object;
  }
/**
   * Generates an object out of the current Record
   *
   * @returns {Object}
   */
Generates an object out of the current Record
@returns {Object}
Generates an object out of the current Record @returns { Object }
toObject() {
    const object = {};
    this.forEach((value, key) => {
      object[key] = value
    });
    return object;
  }
toObject ( ) { const object = { } ; this . forEach ( ( value , key ) => { object [ key ] = value } ) ; return object ; }
Generates an object out of the current Record
 @returns {Object}
Generates an object out of the current Record @returns { Object }