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