SequentialThinkingInput.fromJson constructor
SequentialThinkingInput.fromJson(
- Map<String, dynamic> json
)
Implementation
SequentialThinkingInput.fromJson(Map<String, dynamic> json)
: thought = json['thought'] as String,
nextThoughtNeeded = json['next_thought_needed'] as bool,
thoughtNumber = (json['thought_number'] as num).toInt(),
totalThoughts = (json['total_thoughts'] as num).toInt(),
isRevision = json['is_revision'] as bool?,
revisesThought = (json['revises_thought'] as num?)?.toInt(),
branchFromThought = (json['branch_from_thought'] as num?)?.toInt(),
branchId = json['branch_id'] as String?,
needsMoreThoughts = json['needs_more_thoughts'] as bool?;