McpObject.fromJson constructor

McpObject.fromJson(
  1. Map<String, Object?> json
)

Wraps json as received. The map is copied, so later changes to the caller's map do not reach the model.

Implementation

McpObject.fromJson(Map<String, Object?> json) : _json = _copyMap(json);