factory ToolChoice.fromJson(Map<String, dynamic> json) { return ToolChoice( type: json['type'] as String, name: json['name'] as String?, ); }