serialize method
Serializes the object to a map.
Implementation
@override
Map<String, dynamic> serialize() {
return {
"discriminator": _Utils.discriminator,
"leafschema": leafSchema.serialize(),
"merkleTree": merkleTree,
"index": index
};
}