* Drains the response and returns the JSON object. * @return {!Promise<!JsonObject>}
()
| 169 | * @return {!Promise<!JsonObject>} |
| 170 | */ |
| 171 | json() { |
| 172 | return /** @type {!Promise<!JsonObject>} */ ( |
| 173 | this.drainText_().then(parseJson) |
| 174 | ); |
| 175 | } |
| 176 | |
| 177 | /** |
| 178 | * Drains the response and returns a promise that resolves with the response |
no test coverage detected