()
| 555 | } |
| 556 | |
| 557 | func (j *jsonEncoded) AsDecimal() (*apd.Decimal, bool) { |
| 558 | if dec := j.alreadyDecoded(); dec != nil { |
| 559 | return dec.AsDecimal() |
| 560 | } |
| 561 | |
| 562 | decoded, err := j.decode() |
| 563 | if err != nil { |
| 564 | return nil, false |
| 565 | } |
| 566 | return decoded.AsDecimal() |
| 567 | } |
| 568 | |
| 569 | func (j *jsonEncoded) AsBool() (bool, bool) { |
| 570 | if dec := j.alreadyDecoded(); dec != nil { |
nothing calls this directly
no test coverage detected