* Converts this instance to its JSON representation. * @return {!Object } The JSON representation of this set of * preferences.
()
| 639 | * preferences. |
| 640 | */ |
| 641 | toJSON() { |
| 642 | let json = {} |
| 643 | for (let key of this.prefs_.keys()) { |
| 644 | json[key] = this.prefs_.get(key).name |
| 645 | } |
| 646 | return json |
| 647 | } |
| 648 | } |
| 649 | |
| 650 | // PUBLIC API |