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