转换为JSON对象
Convert to JSON object
Map<String, dynamic> toJson() { return <String, dynamic>{ 'type': contentType, ...toContentJson(), }; }