* Convert struct to string * @this {!Account} * @returns {!string} Struct value string
()
| 2851 | * @returns {!string} Struct value string |
| 2852 | */ |
| 2853 | toString () { |
| 2854 | let result = '' |
| 2855 | result += 'Account(' |
| 2856 | result += 'id=' |
| 2857 | result += this.id.toString() |
| 2858 | result += ',name=' |
| 2859 | if (this.name != null) { |
| 2860 | result += '"' + this.name.toString() + '"' |
| 2861 | } else { |
| 2862 | result += 'null' |
| 2863 | } |
| 2864 | result += ',state=' |
| 2865 | result += this.state.toString() |
| 2866 | result += ',wallet=' |
| 2867 | result += this.wallet.toString() |
| 2868 | result += ',asset=' |
| 2869 | if (this.asset != null) { |
| 2870 | result += this.asset.toString() |
| 2871 | } else { |
| 2872 | result += 'null' |
| 2873 | } |
| 2874 | result += ',orders=' |
| 2875 | if (this.orders != null) { |
| 2876 | let first = true |
| 2877 | result += '[' + this.orders.length + '][' |
| 2878 | for (let item of this.orders) { |
| 2879 | result += first ? '' : ',' |
| 2880 | result += item.toString() |
| 2881 | first = false |
| 2882 | } |
| 2883 | result += ']' |
| 2884 | } else { |
| 2885 | result += '[0][]' |
| 2886 | } |
| 2887 | result += ')' |
| 2888 | return result |
| 2889 | } |
| 2890 | |
| 2891 | /** |
| 2892 | * Inspect struct |
no test coverage detected