TextContent constructor
TextContent({})
Implementation
TextContent({
Annotations? annotations,
required String text,
Map<String, Object?>? meta,
Map<String, Object?>? extra,
}) : super.build({
...?extra,
if (annotations != null) 'annotations': $encode(annotations),
'text': $encode(text),
'type': 'text',
if (meta != null) '_meta': $encode(meta),
});