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