SpendTx.Payload should be populated with the decoded ba_.... from the node.
But in general, Tx structs right now were only written with the expectation that they be created via the constructor, and then serialized to RLP or JSON from there. There is no real way (or need so far) to populate a Tx struct from a node's JSON response, but the need will come in the future.
Other swagger models will probably be treated in a similar fashion too.
SpendTx.Payload should be populated with the decoded ba_.... from the node.
But in general, Tx structs right now were only written with the expectation that they be created via the constructor, and then serialized to RLP or JSON from there. There is no real way (or need so far) to populate a Tx struct from a node's JSON response, but the need will come in the future.
Other swagger models will probably be treated in a similar fashion too.