TextContent.fromJson constructor

TextContent.fromJson(
  1. Map<String, dynamic> json
)

Implementation

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