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