* Converts this instance to its JSON representation. * @return {!Object } The JSON representation of this set of * preferences.
()
| 674 | * preferences. |
| 675 | */ |
| 676 | toJSON() { |
| 677 | let json = {} |
| 678 | for (let key of this.prefs_.keys()) { |
| 679 | json[key] = this.prefs_.get(key).name |
| 680 | } |
| 681 | return json |
| 682 | } |
| 683 | } |
| 684 | |
| 685 | // PUBLIC API |