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