(str, defaultValue = null)
| 576 | } |
| 577 | |
| 578 | toObj(str, defaultValue = null) { |
| 579 | try { |
| 580 | return JSON.parse(str) |
| 581 | } catch { |
| 582 | return defaultValue |
| 583 | } |
| 584 | } |
| 585 | |
| 586 | toStr(obj, defaultValue = null) { |
| 587 | try { |
nothing calls this directly
no outgoing calls
no test coverage detected