ThinkingPart.fromJson constructor

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

Creates a thinking part from a JSON map.

Implementation

factory ThinkingPart.fromJson(Map<String, Object?> json) {
  return ThinkingPart(json[_Json.content] as String);
}