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