toJson method

dynamic toJson()

Implementation

dynamic toJson() => _kind == 'tool' ? {'type': 'tool', 'toolName': toolName} : _kind;