(verbose)
| 1362 | }, |
| 1363 | |
| 1364 | getJson(verbose) { |
| 1365 | let json = {}; |
| 1366 | this._printableProperties.forEach((key) => { |
| 1367 | let value = this[key]; |
| 1368 | if (key === 'availableOptions') { |
| 1369 | value = cloneDeep(value); |
| 1370 | value.forEach((option) => { |
| 1371 | if (typeof option.type === 'function') { |
| 1372 | option.type = option.type.name; |
| 1373 | } |
| 1374 | }); |
| 1375 | } |
| 1376 | json[key] = value; |
| 1377 | }); |
| 1378 | |
| 1379 | if (verbose) { |
| 1380 | let detailedHelp = this.printDetailedHelp(this.availableOptions); |
| 1381 | if (detailedHelp) { |
| 1382 | json.detailedHelp = detailedHelp; |
| 1383 | } |
| 1384 | } |
| 1385 | |
| 1386 | return json; |
| 1387 | }, |
| 1388 | |
| 1389 | /** |
| 1390 | Used to retrieve a blueprint with the given name. |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…