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