toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'thought': thought,
      'thought_number': thoughtNumber,
      'total_thoughts': totalThoughts,
      'next_thought_needed': nextThoughtNeeded,
      if (isRevision != null) 'is_revision': isRevision,
      if (revisesThought != null) 'revises_thought': revisesThought,
      if (branchFromThought != null) 'branch_from_thought': branchFromThought,
      if (branchId != null) 'branch_id': branchId,
      if (needsMoreThoughts != null) 'needs_more_thoughts': needsMoreThoughts,
    };