tojson method
Implementation
Map<String, dynamic> tojson() {
Map<String, dynamic> ret = {};
// Add value
ret.addEntries({"key": this.key}.entries);
// Add key
ret.addEntries({"hex": this.hex}.entries);
// Add Entrie for metedata
ret.addEntries(this.metadata.toJson().entries);
return ret;
}