factory TextContent.fromJson(Map<String, dynamic> json) { return TextContent( text: json['text'] as String, annotations: json['annotations'] as Map<String, dynamic>?, ); }