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