toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {"types": types.map(_toolContentTypeToWire).toList(growable: false), "stream": stream, if (schema != null) "schema": schema};
}