Focus mode
Serialization and deserialization of data happens exactly where you would expect, at contract boundaries. Here is a clear picture of the important pieces that might help. Note that the contract can hold some data (eg. primitive and custom types)
@nearBindgen
is a decorator made for the serialization of custom classes before they are saved to storage onto the blockchain. @nearBindgen
does not support class inheritance.
You need to enroll in the course to be able to comment!