The block
module contains:
- Genesis classes and some generated serializers and deserializers for data models
- Serializers necessary to serialise Rust-specific models to Kotlin models
- Deserializers necessary to deserialize models into JSON format, which is the format Iroha2 expects, for example, for genesis.json
Note that you can also use JSON_SERDE
mapper from serde.kt to deserialise models into JSON:
import jp.co.soramitsu.iroha2.iroha2Mapper