Map<String, dynamic> toJson() { final json = <String, dynamic>{}; if (this.role != null) { json[r'role'] = this.role; } else { json[r'role'] = null; } json[r'content'] = this.content; return json; }