TextContent.fromJson constructor

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

Decodes a JSON object, discarding recoverable issues.

Implementation

factory TextContent.fromJson(Map<String, Object?> json) => decode(json).value;