toJson method
Implementation
Map<String, Object?> toJson() {
var key = this.key;
var value = this.value;
var version = this.version;
var space = this.space;
final json = <String, Object?>{};
if (key != null) {
json[r'key'] = key;
}
json[r'value'] = value;
json[r'version'] = version.toJson();
if (space != null) {
json[r'space'] = space.toJson();
}
return json;
}